PDA

View Full Version : Toolbar button commands changing



judekw
2006-08-25, 04:47 PM
Hi, long time no post.

I am new to CUI. Haven't tried customizing toolbar buttons since R12. (Yes, long time.) Yesterday I successfully created a few new toolbar buttons, but then ran into a snag. I tried picking a command from the "Command List" in the CUI dialogue box for the purpose of editing the .bmp file for my purposes. Then I would click the "New" button and create my new macro. (Excuse me if some of my terminology is incorrect but as I've said, I am new to this. ) This worked well for a while but on the last button I created, when I would attempt to drag it into the toolbar, it would change to a different command. It was not, by the way, the command from which I stole the button image.

After retrying the operation several times, I noticed something... The second column in the "Command List" is labeled "Source." Whenever I click "New" to create a new macro button, it shows as "Command 1" and the "Source" as ACAD. We have four "sources" for our toolbars; ACAD, ACAD2000, EXPRESS, and CUSTOM. The toolbar into which I want to drag my new macro button is located in ACAD2000. What is happing is that the button is being changed into one that is located in the ACAD2000 "source."

No matter what I try, I have been unable to make my new button show ACAD2000 as the source. I do not know the location of these "sources," be they files or what have you. If I could access them on my hard drive I was thinking that perhaps I may be able to cut and paste them to the appropriate folder.

If anyone can understand the problem as I have presented it, I would appreciate any suggestions. If I have been unclear please say so and I will try to explain further.

Thanks

jpaulsen
2006-08-28, 10:42 PM
If you are new to the CUI I would recommend looking at Notes on the Philosophy of CUI (http://forums.augi.com/showthread.php?t=18955). It's a bit long but it is full of good info.

The source listed in the CUI editor is a CUI file. CUI files are in XML format and Autodesk does not recommend editing them; although, I have read several posts where people have edited them. I , on the other hand, have not tried editing them directly, only with he CUI editor.
It sounds like you have ACAD set as the Main CUI and the other CUIs are loaded as partials to ACAD.

The file path of the CUIs can be found in the CUI editor. Pick the ACAD CUI icon in the upper left pane of the editor. Look at the properties on the right and you will see the filename and path. Do the same thing for the other CUIs. If they are loaded as partials expand "Partial CUI Files" under ACAD to see them.

When you create a new command it is always created in the Main CUI. If you want to create the commands in the ACAD2000 CUI you will need to set that as your main. In Options, pick the Files tab. Look for Customization files and set the Main to the ACAD2000 CUI temporarily while you add the commands. When you are done adding the commands set the Main back to the ACAD CUI.

I am a little concerned that you are using an old menu (ACAD2000) in a newer version of ACAD. This can cause problems. A better approach might be to put all your custom commands in the Custom CUI. Remember, new commands are always created int he Main CUI so set the Main to whichever CUI you want to add the commands to.

judekw
2006-08-29, 04:16 PM
Thank you so much for your reply. ACAD is indeed set as the Main CUI and the others are loaded as Partial CUI's. I haven't yet tried as you suggested, but it does sound like the solution. I will post as to whether the results are successful. I am not the CAD manager here, and did not set up ACAD 2006 when it was loaded. I will pass this information on and hopefully your advice will be heeded. Meanwhile I will copy my Support file from my C: drive and save it to my personal ACAD backup on the server. I hope this will not create further complications.

judekw
2006-08-30, 09:32 AM
Jeff,
Your fix worked perfectly. Thanks again.

Jude