Matthias Schwarz Posted August 26, 2019 Share Posted August 26, 2019 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 Quote Link to comment
Matthias Schwarz Posted August 26, 2019 Author Share Posted August 26, 2019 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. 🙄 Quote Link to comment
JBenghiat Posted August 30, 2019 Share Posted August 30, 2019 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 Quote Link to comment
Matthias Schwarz Posted September 16, 2019 Author Share Posted September 16, 2019 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 Quote Link to comment
Recommended Posts
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.