.NET

.NET

Reply
Valued Contributor
netcai
Posts: 66
Registered: ‎07-22-2004
Message 1 of 3 (135 Views)

How to get dimension text's graphic length?

135 Views, 2 Replies
06-21-2005 01:59 AM
I wishto get dimension text's graphic length?could anyone give me some suggestion?
*GPaolo
Message 2 of 3 (135 Views)

Re: How to get dimension text's graphic length?

06-21-2005 02:20 AM in reply to: netcai
Usualy i insert a text with the same characteristic of the originall one but
with rotation =0 and then use text.getboundingbox to have p1(minX,minY) and
p2(maxXmaxY).
Ciao
Gpaolo


ha scritto nel messaggio news:4880175@discussion.autodesk.com...
I wishto get dimension text's graphic length?could anyone give me some
suggestion?
Distinguished Contributor
jbryant4
Posts: 656
Registered: ‎12-12-2003
Message 3 of 3 (135 Views)

Re: How to get dimension text's graphic length?

06-21-2005 03:29 PM in reply to: netcai
You can use the AutoLISP function......TEXTBOX

Definition:
Measures a specified text object, and returns the diagonal coordinates of a box that encloses the text

(textbox elist)

Argument:
elist

An entity definition list defining a text object, in the
format returned by entget.

If fields that define text parameters other than the text
itself are omitted from elist, the current (or default)
settings are used.

The minimum list accepted by textbox is that of the
text itself.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.