.NET

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

How to get dimension text's graphic length?

134 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 (134 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 (134 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.
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.