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

8 Steps 1 min read Medium

Step-by-Step Guide

  1. Step 1: Open a new notepad file.

    You can do this by clicking on Start
    -> Run, write notepad and hit Enter.
  2. 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. ,
  3. Step 3: Write the command as it is understood by AutoCAD in the file.

  4. Step 4: Once you have written the command for all data you need to plot

  5. Step 5: press Enter

  6. 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.

  7. Step 7: Click on Save As from File menu on your Notepad file.

  8. 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

J

Jessica Turner

A passionate writer with expertise in hobbies topics. Loves sharing practical knowledge.

65 articles
View all articles

Rate This Guide

--
Loading...
5
0
4
0
3
0
2
0
1
0

How helpful was this guide? Click to rate: