10-14-2022
12:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-14-2022
12:27 PM
I have a "Duplicate Post" on here already but Ive run into an issue with some code.
oObj = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingDimensionFilter, "Select a drawing dimension.")
If oObj.DimensionType = DimensionTypeEnum.kHorizontalDimensionType Then
MsgBox("Horizontal", , "")
ElseIf oObj.DimensionType = DimensionTypeEnum.kVerticalDimensionType Then
MsgBox("Vertical", , "")
Else
MsgBox("Other", , "")
End IfI am trying to find if a dimension that contains text is either vertical or horizontal. The above code works on dimensions that do not have text but I need to find this value for values that have text.
Solved! Go to Solution.