Jump to content

Recommended Posts

Posted

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?

Posted

I don't know but can you build the names using strcat and the (chr nnn) function?

Posted
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

Posted

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

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...