ATTIN but ignore Attributes containing keyword "DISP-..."

ATTIN but ignore Attributes containing keyword "DISP-..."

michael_delouker
Contributor Contributor
180 Views
1 Reply
Message 1 of 2

ATTIN but ignore Attributes containing keyword "DISP-..."

michael_delouker
Contributor
Contributor

Hey everyone, I hope this finds you guys well.

I was curious to ask for some assistance regarding the modification of the typical ATTIN script to ignore attributes containing a specific keyword. I am a little new to this lisp language, so please forgive the attempt below:

I have attached the original ATTIN, as well as an attempted file containing the modified code found from the below source:

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attin-but-ignore-certain-attributes/...

 

Here are the errors I am getting:

First:

Command: MATTIN
"INTERNAL error in FAIL\nmessage lost, reset to top"

 

and now:

Command: MATTIN
bad argument type: stringp ("HANDLE\tBLOCKNAME\tEQTYPE\tEQ#\tPANELNAME\tCIRCUIT#\tSYSTEMVOLTAGE\tSYSTEMPHASE\tHP(LEAVE_EMPTY_IF_KW)\tKW(LEAVE_EMPTY_IF_HP)\tMCA\tMOP\tFLA\tDISPLAY-EQTYPE\tDISPLAY-EQ#\tDISPLAY-PANELNAME\tDISPLAY-CIRCUIT#")
Cannot invoke (command) from *error* without prior call to (*push-error-using-command*).
Converting (command) calls to (command-s) is recommended.

 

Thank you.

0 Likes
181 Views
1 Reply
Reply (1)
Message 2 of 2

Moshe-A
Mentor
Mentor

@michael_delouker  hi,

 

attin.txt is lisp not data txt file

post you dwg also

 

i tested your mattin.lsp and it works

 

Moshe

 

0 Likes