Strange problem when loading lisp by acad.lsp

Strange problem when loading lisp by acad.lsp

gustavobernardi
Advocate Advocate
958 Views
2 Replies
Message 1 of 3

Strange problem when loading lisp by acad.lsp

gustavobernardi
Advocate
Advocate

Hy everyone.

 

I have a specific problem with a lisp. I have many very simple lisps to insert blocks, and put it in a file.lsp and put the path in the acad.lsp.

The problem is that two of the ten lisps haven't loaded correctly. The two codes have special characters in the command:

sifão3D

cobogó3D

 

When it is loaded, the AutoCAD change the command to:

SIFãO3D

COBOGó3D

 

The name of the layers, blocks encounter problems as well.

 

I have already tryed to load the lisp manually, don't worked.

I have already tryed to rename the file.

 

But, if a just copy and paste the code, works fine. When I paste the code in another lisp that is in the acad.lsp file, works fine as well.

 

What could be wrong with the the file? In the sequence, the code:

 

(defun c:cobogó3D()( setq LN "3d Parede - COBOGÓ")(setq lc 140)(setq theblocktoput "C:/Ringo 2018/3D Blocos/3D - Cobogós.dwg")(insertblockrotate))

 

 

0 Likes
Accepted solutions (2)
959 Views
2 Replies
Replies (2)
Message 2 of 3

gustavobernardi
Advocate
Advocate
Accepted solution

Solved duplicating a "working document" and then paste the code in there.

 

I was used "notepad++" to developed the code, starting from a scratch. Any setting in the program probably can be wrong, I already had a similar problem with DCL -- the words with latin signs showing wrong...

0 Likes
Message 3 of 3

gustavobernardi
Advocate
Advocate
Accepted solution

Furthermore I have discovered the problem with the files. It's about the codification.

 

The "right" codification in this case is in ANSI 

0 Likes