Your Products have been synced, click here to refresh
Adding on to this instead of starting a new discussion since its somewhat related.
The variable in the expression in my if statement is not working. I was going to ask if you can use variables as the expression and here shows you can. But im having issues.
VN1 is basically the same as VN1100. Tried doing what is in the expression. Then i made V1102 to replace whats currently in the expression and that is not working either. Am i doing something wrong?
I don't think your IF condition is valid. VN1+".TP.OUTTOL" would resolve to a sting but you are trying to compare it to a number.
I don't think your IF condition is valid. VN1+".TP.OUTTOL" would resolve to a sting but you are trying to compare it to a number.
I was hoping it would work since LOC1.TP.OUTTOL > 0 works and it was just another way of doing it. Unfortunately looks like that is the route im going to have to take.
You may try IF/INT(VN1+".TP.OUTTOL") > 0 to tell pcdmis you want to convert the string to a number. Not sure if this will work or not.
Unfortunately it did not. But appreciate the help!
There is no need to "+" anything. I think doing that forces PC-DMIS to cast it as a string, and you don't want that. Try this ...
ASSIGN/VN1100=GETTEXT("ID",0,GETCOMMAND("DIMENSION POSITION","LOC",1)) ASSIGN/VN1101=IF(VN1100.TP.OUTTOL>0,"OUT","IN")
That will work! Thank you very much!
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |