Could anyone tell how to insert a diameter symbol to notepad?
Thanks for your help.
Could anyone tell how to insert a diameter symbol to notepad?
Thanks for your help.
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) )
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
(write-line "Ø" f)
ALT+0216 <------
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!
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.
°
ALT+248
Here:
http://tools.oratory.com/altcodes.html
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.:
- Alt and the numpad +, then type the hex code for the UniCode character
- Alt and then numpad 0 and the decimal code for the unicode character
- 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!
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
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...