Your Products have been synced, click here to refresh
Set DcmdID = Cmd.DimensionCommand
DimType = right (DcmdID.ID, 1)]
DcmdID.ID is ID of dimension. In end of ID is letter B, letter R, letter G or no letter and target of above code is to extract B or R or G. Code below should to do actions which depends on letters B R and G from previous piece.
DimType = Right(Cmd.DimensionCommand.ID, 1),
If DimType = G Then
Option Explicit
State = 1 For ix = 1 To DmisCommands.Count Set DmisCommand = DmisCommands(ix) If DmisCommand.IsDimension Then Skip = FALSE Set DmisDimension = DmisCommand.DimensionCommand Select Case State Case 1 ' Normal Case ID = DmisDimension.ID ... If (DmisCommand.Type = DIMENSION_TRUE_START_POSITION) Then State = 2 ElseIf (DmisCommand.Type = DIMENSION_START_LOCATION) Then State = 3 Elseif (DmisCommand.Type = DATDEF_COMMAND) Then State = 1 Skip = TRUE End If If (SKIP = FALSE) And (State = 1) Then ' single command line dimension ... End If Case 2 ' True Position ' one or more command lines for the actual position axes, handle and stay in state 2 ... Case 3 ' Location ' one or more command lines for the actual location axes, handle and stay in state 3 ... End Select Set DmisDimension = Nothing ElseIf (DmisCommand.Type = DIMENSION_TRUE_END_POSITION) Then State = 1 ElseIf (DmisCommand.Type = DIMENSION_END_LOCATION) Then State = 1 Elseif (DmisCommand.Type = FEATURE_CONTROL_FRAME) Then ... State = 1 End If Set DmisCommand = Nothing Next ix
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |