Issue with Script File

Issue with Script File

nck5678
Enthusiast Enthusiast
431 Views
2 Replies
Message 1 of 3

Issue with Script File

nck5678
Enthusiast
Enthusiast

I am facing an issue with a script file.

 

We have some development done with AutoCAD, wherein a specific macro is assigned to a button and it executes a plot functionality along with setting layout. layers, line weight, etc. (Clicking on button executes a macro command which copies a layout from template file, sets it, sets layers, and publishes pdf in a destined pdf).

 

Now, I have to create a script file to use this macro in multiple set of drawings.

For this use, we have another utility (based on accoreconsole) which executes a script file in multiple drawings.

 

Now, I have created a script file by adding the macro command in script file (notepad). This script works well when I run it in Autocad Active window but the script doesnt work in the utility with multiple drawings and throws error after some functions (as below):

Can any one guide how to resolve this?

0 Likes
432 Views
2 Replies
Replies (2)
Message 2 of 3

Ed__Jobe
Mentor
Mentor

You would need to show your code (use the </> button). If an object is nil (that's lisp for null object), then its not getting set, e.g. an entity wasn't selected. But it depends on the object type. No idea without seeing your code.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 3 of 3

norman.yuan
Mentor
Mentor

Since you post in VBA forum, I assume by "macro", you mean VBA macro. AFAIK, AutoCAD core console does not support VBA.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes