I think it would make more sense to create a custom tool palette and populate it with your blocks.

Registered forum members do not see this ad.
Hello,
Can anyone tell me how I can add blocks I have created to a Panel I have created on my Ribbon.
I have a drawing where I have created numerous dynamic blocks, I have now created a tab on my ribbon & have created several panels from this tab e.g. Power, Fire, Containment etc
I would like to insert buttons to each panel relating to each block, for example I would have a button in my Power panel which is called Single Socket and when I press it my single socket block from my block drawing appears and can be added.
Thank you
I think it would make more sense to create a custom tool palette and populate it with your blocks.
"I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police
Eat brains...gain more knowledge!

I currently have the palette set up but in my previous employment I used the ribbon format as described above and would like to convert my current computer to this way




You will have to go into the CUI and in the command list portion, add a new command for the first one, after you have it set, drag that up into the panel in the first Row, create a Row if you haven't already. If that one works, then copy the first one in the command list area, modify for the next name, drag and drop, continue.
You will need each block as its own .dwg file, pick a spot on your local drive to create a library folder, place your blocks there, use that path for the command for each one.
Add more Rows as necessary and continue creating a command for each block, dragging and dropping in the panel you have selected.
"You are entitled to your own opinion but you are not entitled to your own facts." Daniel Patrick Moynihan
I am also trying to do something simular, how would associating the icon with the particular dwg that has the particular block desired?




tomhamlet, would you rephrase your question, I am not entirely sure what you are asking.
"You are entitled to your own opinion but you are not entitled to your own facts." Daniel Patrick Moynihan
Ok. I have kind of ansered my question but still need to know more about it.
I have made an icon on my insert palette to insert my border named "11X17-XX". AutoCAD looks for this in my C drive. At first it was not in my C drive but I eventually put it there. Now it works. So now my question here is how do I make AutoCAD search in a different drive, such as my I drive, for this border?
Also, my current macro for this button is C^C^_INSERT 11X17-XX. This gets the border on my screen, but how would I go about satisfying AutoCAD's arguments so that when I hit my icon AutoCAD knows to place my border with the basepoint on 0,0; the scale at 1; and the rotation at 0 degrees?




I use this instead of a macro, pretty much the same, same. Obviously adjust for your folder path and file name.
Inserts at 0,0, X scale of 1, Y scale of 1, rotation of 0Code:(command ".insert" "I:/DwgLib/_TB17x11" "0,0" "1" "1" "0")
Last edited by rkent; 25th Oct 2012 at 03:46 pm.
"You are entitled to your own opinion but you are not entitled to your own facts." Daniel Patrick Moynihan
It works! Thanks for the help rkent! I only have one more question. Is there a way to get this on to all of my coworkers computers without going to everyone and doing it manually?




Registered forum members do not see this ad.
I would look to Robert Bell for this, search on the web for
enterprise cui robert bell
He has a paper on the Autodesk University Augi site, it will be worth registering in order to get a hold of this paper.
Good luck.
"You are entitled to your own opinion but you are not entitled to your own facts." Daniel Patrick Moynihan
Bookmarks