rajeshjm Posted March 12, 2009 Posted March 12, 2009 I created all standrad parts as block (example block name a, b, c, d )in seperate drawing. I need a VBA program that In a new drawing if i run that VBA program it should list all the blocks (example block name a, b, c, d ) from standrad drawing and also if i pick a particular block (For example block name a) it will insert block a in the new drawing. Quote
dbroada Posted March 12, 2009 Posted March 12, 2009 why not use design centre or have I misunderstood your intention? Quote
rajeshjm Posted March 12, 2009 Author Posted March 12, 2009 why not use design centre or have I misunderstood your intention? Design center will not solve my purpose. thx for your suggestion. Quote
BIGAL Posted March 13, 2009 Posted March 13, 2009 Why not save all your standard blocks in individual drawings then you can easily insert any block. Far easier than inserting a block from another drawing bit of menu code -INSERT S:/Autodesk/blocks/cars/Auto1 DRAG \1 1 0 Quote
Lee Mac Posted March 13, 2009 Posted March 13, 2009 I would agree with BIGAL, a simple macro will do the trick if the blocks are saved to specific locations - even easier if they are in the ACAD search path (no filename needed then). But effectively with just a macro you are doing the same thing as the design center. Quote
rajeshjm Posted March 13, 2009 Author Posted March 13, 2009 Why not save all your standard blocks in individual drawings then you can easily insert any block. Far easier than inserting a block from another drawing bit of menu code -INSERT S:/Autodesk/blocks/cars/Auto1 DRAG \1 1 0 As BIGAL mentioned I already created macro for that one and that macro is running fine. But the problem is that iam having more than 1000 standrad component, obviously it will increase my database. Thats why i am looking for new macro...... 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.