BROK3N Posted May 3, 2010 Posted May 3, 2010 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! Quote
alanjt Posted May 3, 2010 Posted May 3, 2010 Forget Toolbars. ToolPalettes overpowers sad button macros 100 times over, and it's all drag-and-drop. Hmm, does Revit have ToolPalettes? Quote
BROK3N Posted May 3, 2010 Author Posted May 3, 2010 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 Quote
alanjt Posted May 3, 2010 Posted May 3, 2010 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. Quote
Pablo Ferral Posted May 3, 2010 Posted May 3, 2010 Look into Diesel expressions to get and set Variables. You should look into Cannoscale, as well as dimscale. On the whole, I agree with Alan, Tool palettes may be less work in the long run! $(getvar, varname) http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS73099cc142f4875513fb5cd10c4aa30d6b-7ae4.htm,topicNumber=d0e395455 http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ffa23ce210c4a30acaf-504e.htm,topicNumber=d0e343831 http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%202010%20User%20Documentation/index.html?url=WS1a9193826455f5ffa23ce210c875431153db3.htm,topicNumber=d0e340171 Quote
BROK3N Posted May 4, 2010 Author Posted May 4, 2010 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 Quote
alanjt Posted May 4, 2010 Posted May 4, 2010 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))) Quote
BROK3N Posted May 4, 2010 Author Posted May 4, 2010 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? 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.