assign a button for script

assign a button for script

Anonymous
Not applicable
4,113 Views
2 Replies
Message 1 of 3

assign a button for script

Anonymous
Not applicable

Hi gurus, how to assingn a button for script files in auto cadd LT version?

Accepted solutions (1)
4,114 Views
2 Replies
Replies (2)
Message 2 of 3

h_s_walker
Mentor
Mentor

Have you already sorted out your script files?

 

If so. Instead of returns put in a semicolon and change the file so it's all on one line like below

 

^C^C_move;_all;;0,0,0;0,0,1e99;_move;_p;;0,0,0;0,0,-1e99;

 

That's a flatten command.

Howard Walker
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.

EESignature


Left Handed and Proud

0 Likes
Message 3 of 3

pendean
Community Legend
Community Legend
Accepted solution
1. Place your script file(s) in AutoCAD's Search Path (add your own folder or use one of the existing, OPTIONS' commands's FILES tab, first entry at the top).
2. Start CUI command, at the Commands List portion, find the CREATE A NEW COMMAND button, click on it. Give the command a name, a description, find an icon for it if you want an icon. For the 'command' portion, use SCRIPT command and the name of your script, like this:
^C^C_SCRIPT;MyScriptNameHere
3. Move this new 'command' to the Panel or the pulldown menu you want. Adjust the button display option.
4. Click APPLY then OK to get out of CUI.
5. Use WSSAVE command to save your current active workspace.