Search the Community
Showing results for tags 'ascii'.
-
LM:UnFormat and variable lispsys in AutoCAD 2021
Mara821 posted a topic in AutoLISP, Visual LISP & DCL
Hi, the function LM:UnFormat from Lee Mac stopped working for me in Autocad 2021. Function returns only first line of multi line text for example. It could work with variable lispsys set to 2 (support ascii) by reference manual, but it doesn't seems to work. I would like use VS, so set lispsys back to 0 is not solution . So is there another way to solve this? http://www.lee-mac.com/unformatstring.html Thanks- 3 replies
-
- autocad 2021
- lispsys
-
(and 1 more)
Tagged with:
-
Can anyone help me find a good resource on how to create a 3D DXF file from scratch? I am a developer working on a tool that can create cylindrical shapes from schematic drawing coordinates.
-
Ascii and (vl-string-elt) give wrong answers!!
grandhougday posted a topic in AutoLISP, Visual LISP & DCL
I want to write a lisp that read a text from model space and replace some characters in it. for this work i iterate each character and take Ascii code of each one, then in if-else do replacement. in some chars it get wrong answers. for example in character "Þ" (latin capital letter thorn)(Ascii code:222 or Hex=\U+00DE). both (vl-string-elt "Þ" 0) and (Ascii "Þ") commands give me 92 as a resault of it ascii code i use doslib, but same problem exist. does any one know what's the problem?