Your Products have been synced, click here to refresh
Try
DimMeas = ObjCmd.GetText (DIM_MEASURED, 0)
Thanks vpt.se, but I tried that last night and it gave me a zero for the read out. Maybe I called it out wrong. I noticed that this is a measured plane earlier in the program, which is a feature command and I think I put this under dimension commands. Would that make a difference?
The code I referred to (DIM_MEASURED) only works with dimensions, in this case the DIMENSION_Z_LOCATION.
Kelly,
This might not help, but it is good practice for the future.
PCDMIS prefers <demands> Feature Names, etc to have ONLY alphanumeric characters (letters, numbers) and the underscore key. Sometimes other characters work, but why tempt the demon.
no spaces, + or - signs. It gets confused and performs math functions.
good luck on your coding.
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |