Jump to content

Insert Blocks via Toolbar or creating menus


CADken

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

blocks.JPG

Link to comment
Share on other sites

  • 2 weeks later...
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?!

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...