+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Senior Member
    Using
    Map 3D 2007
    Join Date
    Sep 2009
    Posts
    142

    Default How to determine length of a text on the drawing.

    Registered forum members do not see this ad.

    Hi!

    I need help yet again. I need to determine the length of a text object in the drawing, not the number of characters it has, but the space it takes in real world units. I cannot base my calculation solely on the number of characters it has, because different characters have different lengths.

    It only needs to be precise for up to 10 characters.

    thanks

  2. #2
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,718

    Default

    hint* textbox hint*
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  3. #3
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,000

    Default

    (vlax-getboundingbox Obj 'P1 'P2)
    If it's MText, you can (cdr (assoc 42 (entget (car (entsel)))))
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

  4. #4
    Senior Member
    Using
    Map 3D 2007
    Join Date
    Sep 2009
    Posts
    142

    Default

    Thanks I've already got it with textbox.

  5. #5
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    6,000

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by M76 View Post
    Thanks I've already got it with textbox.
    Always happy to not help.
    DropBox | finding the light...
    Seann: ...it went crazy ex-girlfriend on me...
    eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...

Similar Threads

  1. Determine the quantity of blocks in your AutoCAD drawing
    By valtrackworks in forum Tutorials & Tips'n'Tricks
    Replies: 20
    Last Post: 24th Jul 2012, 11:10 am
  2. How to determine the horizontal length of a curve?
    By marlon in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 3
    Last Post: 28th Aug 2009, 09:44 am
  3. how to determine length of sweep?
    By reggy in forum SolidWorks
    Replies: 0
    Last Post: 21st Aug 2008, 06:01 am
  4. want lisp for length put on drawing
    By harshad in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 19th Aug 2007, 02:55 am
  5. Length of Text Editor
    By Steamineagle in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 20th Apr 2007, 02:37 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts