MText Actual Width and Actual Height

Discussion in 'AutoCAD' started by Joseph Pods, Dec 27, 2004.

  1. Joseph Pods

    Joseph Pods Guest

    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.
     
    Joseph Pods, Dec 27, 2004
    #1
  2. Allen Johnson, Dec 27, 2004
    #2
  3. Joseph Pods

    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.
     
    Joseph Pods, Dec 27, 2004
    #3
  4. 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
     
    Allen Johnson, Dec 27, 2004
    #4
  5. Joseph Pods

    Joseph Pods Guest

    Thanks, man.
     
    Joseph Pods, Dec 27, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.