artuiel Posted February 18, 2014 Posted February 18, 2014 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! Quote
steven-g Posted February 18, 2014 Posted February 18, 2014 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. Quote
artuiel Posted February 18, 2014 Author Posted February 18, 2014 thanks Steven, but how do I set the block's folder location? Quote
steven-g Posted February 18, 2014 Posted February 18, 2014 Add it to the support path, in tools - options - support file search path. Quote
JGA Posted February 18, 2014 Posted February 18, 2014 I think a toolpallete would be the simplest answer, you wouldn't have to add a folder to the support path. Quote
Tuns Posted February 18, 2014 Posted February 18, 2014 Or you can just add the file path to the macro. Quote
BIGAL Posted February 19, 2014 Posted February 19, 2014 2nd go down the tool palette path or a menu or old fashioned like me. Quote
artuiel Posted February 19, 2014 Author Posted February 19, 2014 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 Quote
artuiel Posted May 5, 2014 Author Posted May 5, 2014 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? Quote
steven-g Posted May 5, 2014 Posted May 5, 2014 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 Quote
dbroada Posted May 5, 2014 Posted May 5, 2014 does it just refuse to do anything or is it inserting the wrong block? Quote
Recommended Posts
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.