Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A script within a script 1

Status
Not open for further replies.

Kckronic21

Programmer
Jul 29, 2001
81
US
I have a problem with my script file. I have several layouts that I have created: Current_Layout, Jan_02_Layout, Jun_02_Layout, and Jan_03_Layout that have different layers that need to be turned on and off when they are needed. I have created a script file for each layout, but what I really need to know is how to be able to run scripts within a script. Can anyone help me out on this issue? Thanks!
 
All you have to do is put a line on the end of the first script, calling the second

ie

script c:\temp\second.scr


Don't forget the CR at the end though.

Nick Hall
nick.hall@altasystems.co.uk
 
I have tried that way already, and the script stops after the first script ends.
 
I dont think it is possible to do in autocad. combining scripts is the only way I know of to do this.


hth
Rob
 
What version of AutoCAD are you using ?

It worked fine for me on 2000i

Nick
 
Hi,
I finally figured out how to combine scripts. I created 5 buttons for all 5 scripts. The command for the Current Layout button is this: 'script_Current. The command for the Jan02 Layout button is this: 'script_Current 'script_Jan02. The rest of the scripts follows the same sequence. I am using AutoCAD LT 2000 so I don't know if it will work with other versions. Thanks for all of the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top