Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
C_Haines_ENG
335 Views, 6 Replies

Determine if Dimension with Text is Horizontal Or Vertical

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 If

I 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.