Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Insert multiple blocks using script

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
sthompson1021
8937 Views, 9 Replies

Insert multiple blocks using script

Can anyone tell me whats wrong with this script? It inserts the first block and then quits. I had to change the the file to a txt to get it to upload

9 REPLIES 9
Message 2 of 10

You may only need 1 0 instead of 1 1 0 in your script, which defines the scale and rotation angle.
Also, do you need a minus sign "-" in front of your insert command? like so? -INSERT

 

*EDIT*  Try adding a leading space for the third line onwards.

Scott Wilcox, Edmonton, Alberta, Canada
AutoCAD 2014 Professional
Message 3 of 10

Thanks for the reply, unfortunately nothing worked.

I get this in the text window when it stops.

 

Message 4 of 10

After a lot of messing around, I found that I had to put in the block name after each set of coordinates. Also a kudo to scottwilcox as he was right about only needing 1 0 after the coordinates

Message 5 of 10

FYI, this worked on my AutoCAD 2011:

 

Scott Wilcox, Edmonton, Alberta, Canada
AutoCAD 2014 Professional
Message 6 of 10

Hey, it works on my 2014 too... I could have sworn I tried it like that but I must have had something different. Thanks for the info.

Message 7 of 10
Anonymous
in reply to: sthompson1021

If you have the information in excel you can copy this into a word document.  Save as plain txt, inserting line breaks.  Change the extension from txt to scr

Message 8 of 10
Anonymous
in reply to: Anonymous

You need a space and then a then a carriage return after each line

Message 9 of 10
shiva.b2008
in reply to: sthompson1021

sir,

i have same problem faced 

Message 10 of 10
cadffm
in reply to: shiva.b2008

The solution is the same..

But a better solution is to use the scale option of insert command.

 

If you insert a block, defined for 'scale uniformly' only, acad ask only one time for xyz-scale.

If not, acad ask for x and y scale.

 

 

- Sebastian -

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost