Check if Dimension is horizontal or vertical Orientation via API

Check if Dimension is horizontal or vertical Orientation via API

Anonymous
Not applicable
405 Views
2 Replies
Message 1 of 3

Check if Dimension is horizontal or vertical Orientation via API

Anonymous
Not applicable

Hi everyone,

 

is there a quick way to check, if a linear dimension is horizontal or vertical?

 

Maybe via the text orientation?

 

 

Greetings

 

Passi

0 Likes
Accepted solutions (1)
406 Views
2 Replies
Replies (2)
Message 2 of 3

basnederveen
Advocate
Advocate
Accepted solution

Yes, you can check if

 

LinearGeneralDimension.DimensionType = kVerticalDimension / kHorizontalDimension

 

if this does not work out you could check the dim.IntentOne or dim.IntentTwo and see if the difference in PointOnSheet X/Y corresponds to the modelvalue of the dimension

 

 

 

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Thanks a lot, the "Lineargeneraldimesion" was the hint 🙂

0 Likes