Scripting a save for ATTOUT

Scripting a save for ATTOUT

vdouglasL4FAG
Explorer Explorer
577 Views
1 Reply
Message 1 of 2

Scripting a save for ATTOUT

vdouglasL4FAG
Explorer
Explorer

Hello everyone,

I am trying to automate the ATTOUT feature of AutoCAD using an .scr script.  Once you type in the command it immediately pulls up a dialog box to choose the file name and location.  Does anyone know how to get the dialog box to save without having to click on it? 

0 Likes
Accepted solutions (1)
578 Views
1 Reply
Reply (1)
Message 2 of 2

cadffm
Consultant
Consultant
Accepted solution

Use the attout lisp function bns_attout

For example

(bns_attout (getstring "\nFile: ") (ssget))

D:/test.txt

All

 

Or take a look here for more lisp samples

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/attout-and-attin-to-file-by-lisp/td-...

 

Sebastian

0 Likes