See the top rated post in this thread. Click here

Results 1 to 7 of 7

Thread: List of text codes and other tricks?

  1. #1
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,507
    Login to Give a bone
    0

    Red face List of text codes and other tricks?

    Hi everyone, I have a question from a co-worker I need help answering.
    They wanted to know where they can get a list of text codes like %%p, %%c, %%d (etc.) and what they do. I realize it depends on the font being used if they work or not.

    I couldn't find it in any AutoCAD help topic, I may have it in a text book somewhere.

    Another thing, tricks like adding \X to the end of dimensions to stack text below the line, like <>\XTYP gives you:
    4'-0"
    <------------------------------------->
    TYP


    Does anyone know where to find a list of those type of codes?

    Thanks

  2. #2
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: List of text codes and other tricks?

    Do you have any older acad manuals lying around? They used to list them.
    %%c = diameter symbol
    %%d = degrees symbol
    %%p = plus/minus symbol
    (those ^ are also in the mtext editor under "insert symbol")

    %%u = underline
    %%o = overline
    (I don't think they ^ work anymore in Mtext)

    %%% = % (why, I've always wondered)

  3. #3
    Certifiable AUGI Addict tedg's Avatar
    Join Date
    2005-06
    Location
    in the upper right corner
    Posts
    3,507
    Login to Give a bone
    0

    Default Re: List of text codes and other tricks?

    Quote Originally Posted by jaberwok View Post
    %%% = % (why, I've always wondered)
    He, he.. me too! Seems a bit silly when "%" does the same thing!

    I'll look into the manual thing, I have some text books, one for R12, R13, R2006 and an R14 manual kicking around somewhere too.

    Thanks

  4. #4
    Certified AUGI Addict cadtag's Avatar
    Join Date
    2000-12
    Location
    Cairo - no, not Illinois
    Posts
    5,069
    Login to Give a bone
    0

    Default Re: List of text codes and other tricks?

    Well, what if you actually _want_ to see %% in the drawings? At least you can put in %%%%%% and see %% in the text.

    Most applications that use a character to control special codes will do the same thing, so if ## was the control character, ### would display #

  5. #5
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,570
    Login to Give a bone
    0

    Default Re: List of text codes and other tricks?

    Actually, %%%% will display %% but I don't recall ever seeing any reference to a need to display %% in any of the manuals; just the statement that %%% displays %.
    Weird, wonderful and, ultimately, pretty pointless.

  6. #6
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: List of text codes and other tricks?

    See the User's Guide, Annotate Drawings, Notes and Labels, Use an Alternate Text Editor, Format Multiline Text in an Alternate Text Editor for formatting codes that can be used with MText-based objects.
    R. Robert Bell
    Design Technology Manager
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  7. #7
    All AUGI, all the time
    Join Date
    2003-10
    Posts
    706
    Login to Give a bone
    2

    Default Re: List of text codes and other tricks?

    Just for fun I wrote a quick Lisp routine about 10 years ago that put a "%%" in front of a series of numbers (1 thru whatever you choose) and it shows what the charactor code is for certain symbols. You have to set your textsize to 1.0 for whatever font you try it on. Works good. There are some crazy characters out there in some of these fonts. Here's the Lisp code... give it a try...

    Code:
     
      (defun c:cmap ()
        (setq rownum nil)
        (setq textnum 1)
        (setq startpnt (getpoint "\nPick start point:"))
        (setq pntx (car startpnt))
        (setq pnty (cadr startpnt))
        (setq rownum (getint "\nGo to what number?"))
        (setq rownum2 rownum)
        (setq percent "%%")
       
         (while (> rownum 0)
          (progn
           (setq textnumtx (rtos textnum 2 0))
           (command "text" (list pntx pnty) "0" (strcat percent textnumtx))
           (setq rownum (- rownum 1))
           (setq textnum (+ textnum 1))
           (setq pntx (+ pntx 2))
              ))
                 )

Similar Threads

  1. Replies: 3
    Last Post: 2013-12-13, 07:28 AM
  2. ADT 2004 sees Chinese text as Multibyte codes
    By jhow in forum AutoCAD General
    Replies: 5
    Last Post: 2007-10-30, 12:36 PM
  3. MTEXT Codes in List Definitions, ADT 2007
    By dkoch in forum ACA Wish List
    Replies: 0
    Last Post: 2006-09-10, 03:17 AM
  4. Setting up M-text for a numbered list
    By dcochrane757156 in forum AutoCAD Tips & Tricks
    Replies: 6
    Last Post: 2005-03-29, 03:57 PM
  5. Text copy (added to Tips & Tricks - 5-10-03- Q)
    By JTF in forum Revit Architecture - Wish List
    Replies: 2
    Last Post: 2003-05-01, 01:59 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
  •