Results 1 to 10 of 10

Thread: Symbols in Notpad

  1. #1
    AUGI Addict
    Join Date
    2006-04
    Location
    (0,0,+|Z|)
    Posts
    1,119

    Default Symbols in Notpad

    Could anyone tell how to insert a diameter symbol to notepad?
    Thanks for your help.

  2. #2
    I could stop if I wanted to Tharwat's Avatar
    Join Date
    2010-06
    Posts
    478

    Default Re: Symbols in Notpad

    This ... ?

    Code:
    (if (setq f (getfiled "Name of file" (getvar 'dwgprefix) "txt" 1))
      (progn
        (setq f (open f "w"))
        (write-line "%%c" f)
        (close f)
      )
      (princ)
    )

  3. #3
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: Symbols in Notpad

    Tharwat, I don't think that does what you think it does. Notepad does not interpret the AutoCAD characters the same way.

    Bokirra, you might look into this link to get a better understanding of the necessary characters.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  4. #4
    I could stop if I wanted to pbejse's Avatar
    Join Date
    2010-10
    Posts
    398

    Default Re: Symbols in Notpad

    (write-line "Ø" f)

    ALT+0216 <------

  5. #5
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,344

    Default Re: Symbols in Notpad

    For other characters you could try the standard windows program Character Map (under Start-->All Programs-->Accessories-->System Tools-->Character Map). Then it displays all the characters per font, if you click on any of those characters a description and keystroke is displayed in the status bar. Or you could click the Select button and then Copy - then you can paste the character in any program. Note, not all characters are available in all fonts.
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

  6. #6
    AUGI Addict
    Join Date
    2006-04
    Location
    (0,0,+|Z|)
    Posts
    1,119

    Default Re: Symbols in Notpad

    Thanks, irneb.
    I don't really like to use the character map as it takes time.
    As I understood in writing of Autolisp we normally don't use many special symbols.
    I think pbejse's tip may work for me.
    Only one thing is I need to have a list sticking on the wall.

    Ø - ALT+0216
    degree - ALT+????
    ...

    Does anyone know where to get an entire list?
    Thanks to everyone's input.

  7. #7
    I could stop if I wanted to pbejse's Avatar
    Join Date
    2010-10
    Posts
    398

    Default Re: Symbols in Notpad


  8. #8
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,344

    Default Re: Symbols in Notpad

    You can generate most of the ANSI/ASCII codes direct in lisp using the chr function. Just place it in a loop with a number incremented from 32(space) up to 255 (below 32 are control codes line new-line / tab / etc). For those other characters, you could use one of three methods: http://www.fileformat.info/tip/micro...er_unicode.htm

    I.e.:
    1. Alt and the numpad +, then type the hex code for the UniCode character
    2. Alt and then numpad 0 and the decimal code for the unicode character
    3. Alt and then the decimal code for your current codepage


    BTW, you can enter the same idea in ACad's text.

    For a full listing of all unicode characters: http://www.utf8-chartable.de/

    Just remember that not all characters are defined in all fonts, you might end up getting a ? instead of the character you wanted. At least if you use the CharMap it only shows those characters defined inside the font you specify.
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

  9. #9
    AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL
    Posts
    1,099

    Default Re: Symbols in Notpad

    I have a list of the most common charactors on my home page:
    http://home.comcast.net/~721rr/
    and a link on it with a page with a lot more charactors:
    http://home.comcast.net/~721rr/Charactors.htm
    The more common ones I can usually remember now.
    Tom Beauford P.S.M. - Civil 2013 on Windows 7 Pro
    Design Analysis - Leon County Public Works/Engineering
    2280 Miccosukee Rd. Tallahassee, FL 32308-5310
    Ph# (850)606-1516

  10. #10
    AUGI Addict
    Join Date
    2006-04
    Location
    (0,0,+|Z|)
    Posts
    1,119

    Default Re: Symbols in Notpad

    Thanks for everyone's help.
    I will take the list sugguested by pbejse.
    And thanks to irneb for your reminder.
    Just remember that not all characters are defined in all fonts, you might end up getting a ? instead of the character you wanted...

Similar Threads

  1. A.P.I. Symbols
    By DHOCKENBERRY418569 in forum AutoCAD General
    Replies: 2
    Last Post: 2012-01-04, 08:41 PM
  2. Imported CAD symbols VS Annotation 2D symbols
    By Binu Mathew in forum Revit MEP - General
    Replies: 1
    Last Post: 2009-12-30, 02:36 PM
  3. Symbols and Tag
    By UpNorth in forum Revit MEP - General
    Replies: 0
    Last Post: 2008-01-22, 04:51 PM
  4. Use of symbols in SSM
    By justin.d.ehart in forum AutoCAD Sheet Set Manager
    Replies: 5
    Last Post: 2005-01-11, 02:26 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
  •