Jump to content

AutoCAD LT 2017


MNH

Recommended Posts

AutoDesk suggests this as one possible method.

 

"Create a script file (.scr) of the point file and drag and drop it into the AutoCAD model view window."

 

And this is a copy of the sample script file they provided.

 

_MULTIPLE _POINT

9231.55,8799.44,10

9241.83,8781.49,20

9194.23,8765.63,20

9191.68,8751.05,30

9158.88,8725.80,50

9147.11,8726.84,80

9128.10,8712.21,40

9145.18,8690.02,10

9152.41,8689.65,0

9167.86,8585.40,0

 

A script file can be written using any ASCII text editor like Notepad. Save the file with the .scr file type extension.

Link to comment
Share on other sites

  • 3 weeks later...

-insert

ipoint

5000,5000

 

 

 

-insert

ipoint

5400,5300

 

 

 

-insert

ipoint

5400,5000

 

 

 

 

I created a script file leaving 2 lines empty before each subsequent -insert command to indicate "ENTER" for each line, therefore entering default values for scale factor and rotation angle. When I run the script from the command line, I get

 

 

Requires valid numeric angle or second point.

Specify rotation angle :

 

 

 

from AutoCAD. Only the first point gets inserted. I've followed all of the rules for writing a script file. I wrote the script file in Notepad. I created a block called ipoint.dwg. It is an "X" point type. The insertion point is the node.

Link to comment
Share on other sites

Try it like this

 

-insert ipoint 5000,5000 1 1 0

-insert ipoint 5400,5300 1 1 0

-insert ipoint 5400,5000 1 1 0

 

Look at using excel to create the script using the concatenate command copy the column to notepad and save as a script.

Screen Shot 01-03-17 at 01.05 PM.PNG

Link to comment
Share on other sites

Your horizontal format works! Thanks! The script doesn't stop after the third line is executed. I have to press ESC, or simply wait for the prompt for a rotation angle to disappear. When you save the script in Notepad, you must leave the last line empty. The cursor must be at the beginning of the fourth line, in my case. If not, the script won't execute properly. When I saved the script with the cursor at the end of the third line, only the first line of the script executed.

Link to comment
Share on other sites

You can use blank lines in a script as = to press Enter. As you say often you need just one more as last line to end the command or it sits and waits. You have to watch the commnad line closely sometimes, one to watch out for is scripting text if you have a text style with height set its 1 command less. Text Pt 2.5 90 asdf or Text pt 90 asdf

 

line 1,1 3,3

circle 1,1 10

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...