Ryan G Posted October 16, 2012 Share Posted October 16, 2012 Is there away to use a customized menu drop list to insert a block? If so has anyone figured out the macro code for it to work in AutoCAD 2012? I have a code now that allows me to do what I want in AutoCAD 2002 & AutoCAD 2007, but the code breaks at the C:, it does not follow the full path to the location of the file that I am trying to insert. I mean I can do the old fashion way of inserting blocks into a drawing but was trying to create a drop list so I can just pick what I want to insert. Any information on this would be helpful. Thanks, Ryan Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 16, 2012 Share Posted October 16, 2012 (edited) AutoCAD 2012 and you're still using drop down menus? Two words: Tool Palettes. It's been a while since I've done this but using AutoCAD 2013 I was able to insert a block of a ball valve via the Draw drop-down menu. Maybe you typed something wrong. The macro looked like this: ^C^CInsert;C:/DWG/PIDs/Symbols/ballv.dwg; Edited October 16, 2012 by ReMark Quote Link to comment Share on other sites More sharing options...
Ryan G Posted October 16, 2012 Author Share Posted October 16, 2012 Yeah the code that I was using looked similar to the one that you posted. Mine looked like: ^C^C-Insert;C:\AutoCAD Symbols\Figure 1\Valve I noticed that my slashes were going the wrong way and that I didn't have a semi-colon at the end of the code. I tried your code (changing the file location) and it worked great. I have tried the Tool Palettesbut for some reason they are not showing up for me to use. Any information on this would be greatful. Thanks, Ryan Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 16, 2012 Share Posted October 16, 2012 On the Ribbon: View tab > Palettes panel > Tool Palettes. In AutoCAD Help look at "About Creating Tool Palettes." There are several methods for creating Tool Palettes. Drag and drop blocks is one method. Quote Link to comment Share on other sites More sharing options...
Ryan G Posted October 16, 2012 Author Share Posted October 16, 2012 I will look into using the pallettes and get back with you if I have any issues in setting it up. Thanks for all the help. Ryan Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 17, 2012 Share Posted October 17, 2012 Old fashioned way allows for customisation of the image started about 20 years ago I still prefer. This works via menu let me know if want example. Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 17, 2012 Share Posted October 17, 2012 And the new way is drag...drop...done. Unless the OP is carrying some customization over from twenty years ago I'd say it was time to update his approach and utilize Tool Palettes. Quote Link to comment Share on other sites More sharing options...
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.