Results 1 to 5 of 5

Thread: MText Actual Width and Actual Height

  1. #1
    Joseph Pods Guest

    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.

  2. #2
    Allen Johnson Guest
    Hoo boy!
    See my post http://discussion.autodesk.com/threa...sageID=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.

  3. #3
    Joseph Pods Guest
    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...
    Hoo boy!
    See my post http://discussion.autodesk.com/threa...sageID=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.



  4. #4
    Allen Johnson Guest
    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

  5. #5
    Joseph Pods Guest
    Thanks, man.

    "Allen Johnson" <ajohnson@dwase> wrote in message
    news:41d059f2$1_3@newsprd01...
    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

Similar Threads

  1. rev table row height
    By in forum SolidWorks
    Replies: 0
    Last Post: 11-21-2005, 09:10 AM
  2. Zoom to actual
    By Randy Story in forum SolidWorks
    Replies: 3
    Last Post: 05-07-2005, 11:24 PM
  3. Setting MText Width via LISP
    By JRodriguez in forum Customization
    Replies: 12
    Last Post: 01-07-2005, 11:26 AM
  4. Mtext Width Factor
    By hulioman in forum AutoCAD
    Replies: 1
    Last Post: 12-16-2004, 04:40 AM
  5. Reduce Mtext to Actual String Width?
    By Simon in forum Drafting
    Replies: 8
    Last Post: 11-18-2004, 05:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum