hexagon logo

Need help on OUTTOL.BAS file

I have used this script many time and have even made a couple minor mods.
Here is my issue. It is looking for "END OF DIMENSION" and profiles and distances do not have this. It skips over and ignore those. Anybody have an idea as to how I can mod this script to do this ???

Time is critical, I appreciate anyone who responds and helps !!

For Each Cmd In Cmds
    ' if the command of the current iteration is a dimension ...
    If Cmd.IsDimension Then
      ' and it is not a start or end dimension object ...
      If Cmd.Type <> DIMENSION_START_LOCATION And _
         Cmd.Type <> DIMENSION_END_LOCATION And _
         Cmd.Type <> DIMENSION_TRUE_START_POSITION And _
         Cmd.Type <> DIMENSION_TRUE_END_POSITION Then
        ' then get the dimensioncommand object from the command
        Set DimCmd = Cmd.DimensionCommand
        ' If it is out of tolerance, increment numberout, otherwise increment numberin
        If DimCmd.OutTol > 0 Then
          NumberOut = NumberOut + 1
        Else
Parents
  • I had that issue initially and changed it back to legacy dims, we are using 2009 version with this right now. I tried TP, thats picks it up fine, but what about keyed in, or profiles. It seems to be ignoring them altogether...not sure what to try and add now...hmmmm



    I don't have 2k9 so I'm not sure what the heck may have changed. The place that I got the info for the IsLocationAxis/IsTurePosAxis info was under the properties of the DimensionCommand Object in the help file. Maybe in there it will have more of these types of properties listed if there are any.

    It does seem to get profiles and keyins ok for me.
Reply
  • I had that issue initially and changed it back to legacy dims, we are using 2009 version with this right now. I tried TP, thats picks it up fine, but what about keyed in, or profiles. It seems to be ignoring them altogether...not sure what to try and add now...hmmmm



    I don't have 2k9 so I'm not sure what the heck may have changed. The place that I got the info for the IsLocationAxis/IsTurePosAxis info was under the properties of the DimensionCommand Object in the help file. Maybe in there it will have more of these types of properties listed if there are any.

    It does seem to get profiles and keyins ok for me.
Children
No Data