Jump to content
artuiel

automating block insertion

Recommended Posts

artuiel

Hi!

 

I'm looking for a script that does this:

 

insert block from specific (non changing) folder,

*type in name of block*

no rotation

no scaling

insert to picked point on screen

 

(meaning- i only want to type the name end pick a point of insertion)

 

any ideas?

 

thanks a lot!

Share this post


Link to post
Share on other sites
steven-g

This macro will do that, it starts the insert command, pauses for you to input the block name, asks for the insertion point, and inserts at normal scale and zero rotation.

^C^C^Ci;\\1;0;

You could also create a toolpalette with the various blocks, so you only need select the right one and then pick a point, obviously it depends on how many blocks you have.

Share this post


Link to post
Share on other sites
artuiel

thanks Steven,

 

but how do I set the block's folder location?

Share this post


Link to post
Share on other sites
steven-g

Add it to the support path, in tools - options - support file search path.

Share this post


Link to post
Share on other sites
JGA

I think a toolpallete would be the simplest answer, you wouldn't have to add a folder to the support path.

Share this post


Link to post
Share on other sites
Tuns

Or you can just add the file path to the macro.

Share this post


Link to post
Share on other sites
BIGAL

2nd go down the tool palette path or a menu or old fashioned like me.

ScreenShot004.jpg

Share this post


Link to post
Share on other sites
artuiel

Thank's again for all of your advice! :)

 

I'd rather just type the serial No. ,then trying to find it in the tool-palette

Share this post


Link to post
Share on other sites
artuiel

Hello again!

 

I have a follow-up challenge here-

the command works great on simple blocks, but It won't insert any block inside the requested block, even when they are both in the same folder...

any ideas?

Share this post


Link to post
Share on other sites
steven-g

It should work, check that you don't have conflicting names or layers, if you can't see anything obvious then try posting the files here for someone to check for less obvious causes

Share this post


Link to post
Share on other sites
dbroada

does it just refuse to do anything or is it inserting the wrong block?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×