Jump to content
Matthias Schwarz

*Calculating* size of Dimension-Objects?

Recommended Posts

Hi all,

 

We want to significantly improve our part layout feature and determine the size of (mostly) linear dimension objects to create a clean, non-intersecting layout.
Is it anyhow possible to calculate length and width of dimension objects testable - without using GetObjectBounds (), etc.?

 

Best Regards

 Matthias

 

Share this post


Link to post

Dimension Objects contain (multiple) VWTextBlockObj modifying the dimension.

VWTextBlockObj size varies by font, style and size.

Even this size calculation is probably very expensive to impossible. 🙄

Share this post


Link to post

ovDimStartOffsetInCurrUnits will get you the dimension length, if that's primary what you're looking at. Depending on how precisely you're trying to calculate, you could fetch a number of additional dimension object variables to reconstruct the size.

 

Interestingly, I think in VS hLength() will work on dimensions, but I don't think there is an equivalent SDK command. You could see if ISDK::GetEndPoints() works

Share this post


Link to post

Thanks for your reply JBenghiat, I have been on vacation so i did not see.

 

we decided to actually create temporary dimension objects and get their bounds while calculating the layout of the dimensions.

 

regards

 Matthias

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×
×
  • Create New...