TheSwamp

Code Red => VB(A) => Topic started by: Matersammichman on November 17, 2006, 01:43:06 PM

Title: Text in Dimensions
Post by: Matersammichman on November 17, 2006, 01:43:06 PM
How would you extract the Bounding Box information of Text contained in a Dimension? (Not the Bounding Box of the Dimension itself).
Title: Re: Text in Dimensions
Post by: Keith™ on November 18, 2006, 12:24:38 AM
You would need to do a couple of things since the text from a dimension is represented by <> plus the overrides if they exist.

You would need to extract the current text of the dimension (i.e. any text overrides) then the text size and style, plus the dimension length, formatted into a string as specified by the dimension style, then strcat the whole thing together and use something similar to this (http://www.theswamp.org/index.php?topic=13581.msg164217#msg164217) to returm the bounding box.
Title: Re: Text in Dimensions
Post by: Fatty on November 18, 2006, 04:48:17 AM
Use GetSubentity method and you'll have a luck :)

~'J'~