Save & Run Script Files
Script files are simply text files which store information for a specific operation thus allowing you to run that operation at a later date by just clicking a few buttons. In this exercise we will create a script file which will create an HTML containing drawing layer data.

Select “Create HTML files from drawing data” from the Operation Tab and click the “Next” button.

Click the “Add File” button to add drawing file ATTEXT.DWG then click the “Next” button.

Select “Layers” from the “Drawing Data to Extract” group box. Click the “>>” button to select all available fields and type name like ‘x%’ into the record filter text box. All layer names which begin with the letter “x” will be selected from the drawing. Click the “Save Script” button to save the script.

Type in createhtml and click the “Save” button.

You will then see this message confirming that the script file was saved. Click the “OK” button to continue.

Close Ultra AutoCAD Tool then reload it. You will now run the script file you just created. Click the “Scripts” tab.

Click the button to open the script file.

Select script file createhtml.scr and click the “Open” button.

Your screen should now resemble this. Click the “Process” button to run the script.

Browse to folder C:\Program Files\Ultra AutoCAD Tool to confirm that the HTML file was created. Double-click on file ATTEXT.HTM to open it with your default web browser.

Script files can also be run from Ultra AutoCAD Tool in “quiet” mode from the command prompt. Click Window’s Start Button which is typically located at the lower left corner of the screen. Select “Run…” and type "C:\Program Files\Ultra AutoCAD Tool\acadtool.exe" C:\Program Files\Ultra AutoCAD Tool\scripts\createhtml.scr then click the “OK” button to run the script. File C:\Program Files\Ultra AutoCAD Tool\ATTEXT.HTM will be created.
|