Script generator

Script generator

dani-perez
Advocate Advocate
2,834 Views
8 Replies
Message 1 of 9

Script generator

dani-perez
Advocate
Advocate

Hello

 

I would like to know if there is a way to "copy" all commands you use in Autocad into a script file via lisp (such as Action Recorder, but into a script file)

 

Thanks all!

0 Likes
2,835 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable

Not entirely sure I understand the question, are you asking how to create a script that would copy all the commands that have been entered thus far. Or are you asking how to put commands into a lisp script?

 

 

0 Likes
Message 3 of 9

dani-perez
Advocate
Advocate

Hello tristananderson46,

 

Sorry for my bad English. There is an option called Action recorder that records all command you write to execute in other drawing. I need a similar tool that records allactions in an Script file.

0 Likes
Message 4 of 9

Anonymous
Not applicable

So I've been monkeying around with it a little bit, and I think an ok way for you to achieve what you want is to simply run the action recorder. You can do this with the commands actrecord, and then actstop respectively. Then in your own lisp script type the files name as its own line. Unfortunately the file type of action recorder is pretty inefficient inherently and there's been some discussion here https://forums.autodesk.com/t5/autocad-forum/actm-file-how-can-i-edit-it-please/td-p/4895002

0 Likes
Message 5 of 9

pendean
Community Legend
Community Legend
If I may ask, why do you need a script file if you have Action Recorder: are you trying to share your command sequences with other non-AutoCAD users or something else?

0 Likes
Message 6 of 9

dani-perez
Advocate
Advocate

Hello 

 

I dont know if I can execute (batch) an action recorder file into multiple drawings. I can do it with a Script file.

0 Likes
Message 7 of 9

dani-perez
Advocate
Advocate

 

So, I understood I can execute an action recorder file into multiple drawings via script, is that right?

0 Likes
Message 8 of 9

Anonymous
Not applicable

Yes from my understanding you should be able to, because it will save it to wherever its set as a permanent file. To see where its set type Options into the command bar and scroll down to action recorder and expand it. 

0 Likes
Message 9 of 9

hbourneV33PR
Observer
Observer
0 Likes