Script for EditAtts (on AutoCAD 2016)

Script for EditAtts (on AutoCAD 2016)

Anonymous
Not applicable
1,282 Views
2 Replies
Message 1 of 3

Script for EditAtts (on AutoCAD 2016)

Anonymous
Not applicable

May I ask, how come the script provided below is not working on AutoCAD 2016 when I am trying to edit the attributes on a block?

 

(load "EditAtts")
(EditAtts "PSA_TBLOCK" "Deg.No.." "")
(EditAtts "PSA_TBLOCK" "Line 1" "")
(EditAtts "PSA_TBLOCK" "Line 2" "")
(EditAtts "PSA_TBLOCK" "Line 3" "") 
ZOOM
EXTENTS
qSAVE

 

The last time I used this was on AutoCAD 2013 or 2014 (a year ago).

 

Thank you,

0 Likes
Accepted solutions (1)
1,283 Views
2 Replies
Replies (2)
Message 2 of 3

ambrosl
Autodesk
Autodesk
Accepted solution

When you run the script in AutoCAD 2016, what happens and where does it fail?  The script itself might not be the problem, the AutoLISP routine itself might be the source of the actual reason why it won't run.  There are some security changes with AutoCAD 2016 that you might need to address if you haven't already prior to getting your AutoLISP routine to execute.

 

The path of the AutoLISP file needs to be added to the Support File Search Path and Trusted Locations on the Files tab of the Options dialog box.  When the AutoLISP file is loaded the first time, make sure you Allow the file to be loaded each time going forward.

 

It is also possible something has changed that could be affecting the functions or commands used in the AutoLISP routine, but without the source code it would be hard to tell.  Does your AutoLISP routine use the OSNAP function?  The changes to the AutoLISP environment for AutoCAD 2014 and later can be found here:



Lee Ambrosius
Senior Principal Content Experience Designer
For additional help, check out the AutoCAD Developer Documentation
Message 3 of 3

Anonymous
Not applicable

Now I understand. No wonder the script I was pasting on the command line was not working. 

 

 

Apparently, the path of an AutoLISP was not added. The AutoCAD 2016 software was just newly installed.

 

I learned something new today. The links you have provided were helpful. Thank you. It took me a while to respond as I went through the link, watched tutorial videos regarding AutoLISP, and tried to solve the problem.

 

p.s. The errors were:

;error: LOAD failed: "EditAtts"

;error: no function definition: EditAtts

 

0 Likes