+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2010
    Posts
    347

    Default Undocumented Codes for MTEXTs

    Registered forum members do not see this ad.

    Hello,

    In my codes below, I have a very nice codes that control with Mtext's contents
    which are highlighted in red.

    I looked for the rest but without a result. So anybody have any please ?

    Code:
    (vl-load-com)
    (setq MyCadDocs (vla-get-activedocument (vlax-get-acad-object)))
    (setq pt (getpoint "\n Specify point for text :"))
    (vla-put-attachmentpoint (vla-addmtext (vla-get-modelspace MyCadDocs)
              (vlax-3d-point pt)
              0
              "{\\C230 Michaels \\C5;!}")
            acattachmentpointmiddlecenter)
    many thanks.

    Michaels

  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,816

    Default

    Firstly, the acAttachmentPointMiddleCenter is just the enum for vla-put-AttachmentPoint - look it up in the ACAD Dev Help.

    As for the "{\\C230" etc, these are the dreaded MText formatting codes, and there are a multitude of codes that can appear.

    Here is a small reference:

    http://docs.autodesk.com/ACD/2010/EN...mber=d0e123454

    Here is another diagram that I constructed for my own reference:

    http://www.theswamp.org/screens/leem...ng%20Codes.png
    Lee Mac Programming

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

    Just another Swamper

  3. #3
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2010
    Posts
    347

    Default

    As usual you are always in the front.

    I thought that I would not get any about my thread. but you always breaking the record Lee.

    Thank you so much.

    Michaels

  4. #4
    Senior Member
    Using
    AutoCAD 2010
    Join Date
    Jul 2010
    Posts
    347

    Default

    It's a very nice and kind of you to share your own works with the others, I do thank you from my heart.

    I followed you uploaded Cad help and I found it in mine.

    And the (vla-put-AttachmentPoint) is really great to get use with it from now on .

    Thank you Lee for your special Help.

    Michaels.

  5. #5
    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,816

    Default

    Registered forum members do not see this ad.

    You're welcome Michaels, happy to provide assistance
    Lee Mac Programming

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

    Just another Swamper

Similar Threads

  1. Undocumented Civil 3D Commands for Sites
    By The CAD Geek Blog in forum AutoCAD RSS Feeds
    Replies: 0
    Last Post: 24th Apr 2009, 11:40 pm
  2. Need to modify various texts simultaneously
    By blatz.boy in forum AutoCAD General
    Replies: 2
    Last Post: 28th Jan 2009, 07:47 pm
  3. Texts at an angle
    By ali888 in forum AutoCAD General
    Replies: 2
    Last Post: 7th Nov 2008, 01:19 pm
  4. plotting texts at different scales
    By darris07 in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 5th Nov 2008, 09:41 pm
  5. Change multiple texts at once
    By juve in forum AutoCAD General
    Replies: 4
    Last Post: 22nd May 2008, 09:00 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