Jump to content

Creating Toolbars 4 Inserting Blocks W/ Macros!!!


Recommended Posts

Posted

ok. so i know im about a decade late in creating toolbars but our firm didnt have a CAD standard when i came to work for them in september. Now after creating a Revit standard im now working on the CAD part. Ive created blocks and now am working on creating the toolbars to insert the blocks. i dont have a problem creating the toolbars and buttons for it, but the problem i do have is creating a command for when i click on the button. ive got it so it inserts the block, rotate it, scale it, then enter the attributes for the symbol. all of that is what i want except for the scale part. i worked for a previous firm that had a toolbar that set the dimscale and when you clicked on a toolbar to insert a block it wouldnt ask you to specify the dimscale because it was set from the first toolbar. thats what im looking for but im not sure how. also when you would insert the block from the toolbar it would come in on the correct layer which i would like to do as well. im new to all the customization in cad so i might be missing some simple. the marco i have now looks like this:

 

 

if you have any information that would help, it would be greatly appreciated

 

thanks! :thumbsup:

Posted

Forget Toolbars. ToolPalettes overpowers sad button macros 100 times over, and it's all drag-and-drop.

 

Hmm, does Revit have ToolPalettes?

Posted

is it easier to create a toolpalette than it is to create a toolbar? how would i do it?

 

Revit doesnt have toolpalettes. all the content you use in Revit is loaded into the project and you use a type selector (basically a drop-down menu) to choose what equipment you want to use

Posted
is it easier to create a toolpalette than it is to create a toolbar? how would i do it?

 

Revit doesnt have toolpalettes. all the content you use in Revit is loaded into the project and you use a type selector (basically a drop-down menu) to choose what equipment you want to use

That sucks Revit doesn't have ToolPalettes. I'm not a Revit person (don't even know what it does). I guess Toolbars is your option.:|

Posted

those documents helped and i now know what a diesel macro is. but the thing is that when i set the cannoscale manually and then insert my blocks, they dont come in any different. its almost like i need to get the block to look for the cannoscale and multiply it by 12. im not sure what im going to do but im going to continue my research and ill post any information i find

Posted
those documents helped and i now know what a diesel macro is. but the thing is that when i set the cannoscale manually and then insert my blocks, they dont come in any different. its almost like i need to get the block to look for the cannoscale and multiply it by 12. im not sure what im going to do but im going to continue my research and ill post any information i find

(* 12. (/ 1. (getvar 'cannoscalevalue)))

Posted

i tried that and it doesnt work either. i got close to writing something like that. if i could see how my old firm did it it would be so much easier. is it possible to email a cui file that would have all the macros in it?

Posted

Look at

(getvar 'dimscale)

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...