How to Write and Load a Script File in AutoCAD
Open a new notepad file., Copy and paste the data you need to plot in AutoCAD from the source file where you have calculated. , Write the command as it is understood by AutoCAD in the file., Once you have written the command for all data you need to...
Step-by-Step Guide
-
Step 1: Open a new notepad file.
You can do this by clicking on Start
-> Run, write notepad and hit Enter. -
Step 2: Copy and paste the data you need to plot in AutoCAD from the source file where you have calculated.
, For example:- You have to plot a sphere, so you should write a command as below sphere
0.432305644,0,0.166679396
0.001.
Here, sphere is a command understood by AutoCAD as the user wants to plot a sphere.
The three values separated by comma represents the co-ordinates of origin of sphere.
The last value
0.001 represents the radius of the sphere which is separated by space.
Note:
There should not be a space after last constant you entered in script file. ,, A dialog box will appear.
Enter the file name.
You must have to add .scr to end of your file name, which means it is a script file. , -
Step 3: Write the command as it is understood by AutoCAD in the file.
-
Step 4: Once you have written the command for all data you need to plot
-
Step 5: press Enter
-
Step 6: else the program will turn out to be GIGO and you will be asked for last data that is to be plotted in AutoCAD.
-
Step 7: Click on Save As from File menu on your Notepad file.
-
Step 8: Load that script file in AutoCAD to get your data profile.
Detailed Guide
You can do this by clicking on Start
-> Run, write notepad and hit Enter.
, For example:- You have to plot a sphere, so you should write a command as below sphere
0.432305644,0,0.166679396
0.001.
Here, sphere is a command understood by AutoCAD as the user wants to plot a sphere.
The three values separated by comma represents the co-ordinates of origin of sphere.
The last value
0.001 represents the radius of the sphere which is separated by space.
Note:
There should not be a space after last constant you entered in script file. ,, A dialog box will appear.
Enter the file name.
You must have to add .scr to end of your file name, which means it is a script file. ,
About the Author
Jessica Turner
A passionate writer with expertise in hobbies topics. Loves sharing practical knowledge.
Rate This Guide
How helpful was this guide? Click to rate: