CADken Posted August 8, 2008 Share Posted August 8, 2008 I'm trying to create a toolbar with symbols that replicate some our of blocks. I can create the button and the image, but I'm not sure how to make the command so when you select the tool that block is inserted. Should I just stick with the ADC for this? Example: I have a 4' lighting fixture button, I want to select that tool in the toolbar and insert our 4' lighting fixture where i specify on the screen. Quote Link to comment Share on other sites More sharing options...
dbroada Posted August 8, 2008 Share Posted August 8, 2008 I used to do that but have found the palette easier to use. Create one drawing with all your blocks in it. Drag the blocks from that drawing on to a palette and drag from the palette into your new drawing. Quote Link to comment Share on other sites More sharing options...
borgunit Posted August 8, 2008 Share Posted August 8, 2008 If you have the button made and ready, then this might help http://management.cadalyst.com/cadman/Column:++Circles+and+Lines/Create-Your-Own-AutoCAD-Commands-Circles-and-Lines/ArticleStandard/Article/detail/493986?contextCategoryId=6733 Quote Link to comment Share on other sites More sharing options...
ML0940 Posted August 10, 2008 Share Posted August 10, 2008 Design Center is also effective for grabbing blocks from other drawings ML Quote Link to comment Share on other sites More sharing options...
asos2000 Posted August 10, 2008 Share Posted August 10, 2008 1- create individual file for each block. 2- create a folder on your PC (or on server) and but all files in this folder 3- create a button and type in macro ^C^C-insert;[color=Red]file_path[/color]/[color=Red]file_name[/color].dwg;\\;0; DONT FORGET TO A- Replace \ with / in file bath normal file path \\ws-hmohamed\Documents\Blocks\level_elevation.dwg should be like this //ws-hmohamed/Documents/Blocks/level_elevation.dwg B- if your block has an attribute the code should be like this ^C^C-insert;file_path/file_name.dwg;\\;0;explode;last; C- in the attribute case the block should not has a name like the file name attribute name level-elevation file name level_elevation Quote Link to comment Share on other sites More sharing options...
BIGAL Posted August 11, 2008 Share Posted August 11, 2008 Are the blocks all in a seperate directory? Have you thought about using a menu you can have multiple pages of grouped blocks with images and the nice thing is the code is just simple text lines as above but with a image description in front Quote Link to comment Share on other sites More sharing options...
CADken Posted August 21, 2008 Author Share Posted August 21, 2008 1- create individual file for each block.2- create a folder on your PC (or on server) and but all files in this folder 3- create a button and type in macro ^C^C-insert;[color=Red]file_path[/color]/[color=Red]file_name[/color].dwg;\\;0; DONT FORGET TO A- Replace \ with / in file bath normal file path \\ws-hmohamed\Documents\Blocks\level_elevation.dwg should be like this //ws-hmohamed/Documents/Blocks/level_elevation.dwg B- if your block has an attribute the code should be like this ^C^C-insert;file_path/file_name.dwg;\\;0;explode;last; C- in the attribute case the block should not has a name like the file name attribute name level-elevation file name level_elevation AWESOME! I will try this! Are the blocks all in a seperate directory? Have you thought about using a menu you can have multiple pages of grouped blocks with images and the nice thing is the code is just simple text lines as above but with a image description in front WOW! How does one go about creating that?! 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.