M76 Posted September 19, 2011 Posted September 19, 2011 Hi The unfortunate case is that I have a bunch of drawing files that have text style names containing non ascii characters, but I cannot enter non ascii characters into the lisp file, because autocad only works with ansi character encoding. How to get around this? Quote
dbroada Posted September 19, 2011 Posted September 19, 2011 I don't know but can you build the names using strcat and the (chr nnn) function? Quote
M76 Posted September 19, 2011 Author Posted September 19, 2011 but chr only returns ascii characters Quote
pBe Posted September 19, 2011 Posted September 19, 2011 Hi The unfortunate case is that I have a bunch of drawing files that have text style names containing non ascii characters, but I cannot enter non ascii characters into the lisp file, because autocad only works with ansi character encoding. How to get around this? Not suer i understand your question. can you elaborate. or a sample syntax would be helpful Quote
David Bethel Posted September 19, 2011 Posted September 19, 2011 AFAIK, All characters ( on PC based machines ) have either hex (00-FF), decimal (0-255) or chr values. 0-127 were considered as standard ASCII, 128-255 as extended. Autolisp can use %nnn ( decimal ) in a ( strcat ) call to access all 256 characters. Maybe this can help. -David Quote
M76 Posted September 21, 2011 Author Posted September 21, 2011 Well those are the standard ascii characters, but some languages have letters that are not included in the standard ascii table, thus have a different code page. It always was a compatiblity problem. Anyway the best I could do is select a text in the drawing that has the style in question and read the style name directly from there. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.