Your Products have been synced, click here to refresh
Xactmeasure is the reporting of features (specified by GD&T) using Feature Control Frames.
(I never use it)
If (ObjDimCmd.Type = DIMENSION_TRUE_END_POSITION) Then
Maybe?
Try
If (ObjDimCmd.Type = DIMENSION_END_TRUE_POSITION) Then
If (ObjCmd.Type = DIMENSION_TRUE_END_POSITION) Then
[COLOR=#ff0000]For ix = 1 To ObjCmds.Count[/COLOR] Set ObjCmd = ObjCmds(ix) [COLOR=#ff0000]For Each ObjCmd in ObjCmds[/COLOR] . . . .
Yikes - don't do this! You have nested loops that scan through the entire program. So, if the program has 10,000 commands, you are going to scan through the entire program 10,000 times. Use one technique or the other, not both.
DIMENSION_TRUE_END_POSITION is correct.
There is an error here though. 'Type' is not a member of DimensionCommand, it is a member of Command. It should be:
If (ObjCmd.Type = DIMENSION_TRUE_END_POSITION) Then
Since something that is specified as a DIMENSION_Z_LOCATION, or Y loc, or X loc doesn't have an ID in that block of commands, would it help if I set the ID to be that of the previous ID. Could the fact that the program is looking for an ID that doesn't exist make it return a null value?
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |