| Author |
Message |
Joseph Pods
Guest
|
Posted:
Mon Dec 27, 2004 10:14 pm Post subject:
MText Actual Width and Actual Height |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
 |
|
|
|
|