MText Actual Width and Actual Height
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
MText Actual Width and Actual Height

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
Joseph Pods
Guest





Posted: Mon Dec 27, 2004 10:14 pm    Post subject: MText Actual Width and Actual Height Reply with quote

How do I get the MText Actual Width and Actual Height?
I tried GetBoundingBox() method and it returns incorrect value.
The Width and Height property are not the actual width and height as
displayed.

Back to top
Allen Johnson
Guest





Posted: Mon Dec 27, 2004 10:40 pm    Post subject: Re: MText Actual Width and Actual Height Reply with quote

Hoo boy!
See my post http://discussion.autodesk.com/thread.jspa?messageID=4206096

About the only way I've found is to use the express tools to explode the
text, make block of the exploded objects and use getboundingbox on that
block.


"Joseph Pods" <joepods2001atyahoodotcom> wrote in message
news:41d042df$1_2@newsprd01...
Quote:
How do I get the MText Actual Width and Actual Height?
I tried GetBoundingBox() method and it returns incorrect value.
The Width and Height property are not the actual width and height as
displayed.

Back to top
Joseph Pods
Guest





Posted: Mon Dec 27, 2004 11:12 pm    Post subject: Re: MText Actual Width and Actual Height Reply with quote

In ARX (C++), there are methods ActualWidth() and ActualHeight(). It looks
like those 2 methods are not exposed in AutoCAD VBA Object model.

Is there a way for me to call ARX command from VBA? I was thinking to tag
all my MText using XData then call ARX to get me the ActualWidth and
ActualHeight.


"Allen Johnson" <ajohnson@dwase> wrote in message
news:41d04914$1_2@newsprd01...
Quote:
Hoo boy!
See my post http://discussion.autodesk.com/thread.jspa?messageID=4206096

About the only way I've found is to use the express tools to explode the
text, make block of the exploded objects and use getboundingbox on that
block.


"Joseph Pods" <joepods2001atyahoodotcom> wrote in message
news:41d042df$1_2@newsprd01...
How do I get the MText Actual Width and Actual Height?
I tried GetBoundingBox() method and it returns incorrect value.
The Width and Height property are not the actual width and height as
displayed.





Back to top
Allen Johnson
Guest





Posted: Mon Dec 27, 2004 11:52 pm    Post subject: Re: MText Actual Width and Actual Height Reply with quote

I don't know about ARX, but in lisp you can read the DXF field codes 42 and
43 for actual width and height.
Perhaps you could supply those to your VBA code
Back to top
Joseph Pods
Guest





Posted: Tue Dec 28, 2004 12:26 am    Post subject: Re: MText Actual Width and Actual Height Reply with quote

Thanks, man.

"Allen Johnson" <ajohnson@dwase> wrote in message
news:41d059f2$1_3@newsprd01...
Quote:
I don't know about ARX, but in lisp you can read the DXF field codes 42
and
43 for actual width and height.
Perhaps you could supply those to your VBA code

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB