PDA

View Full Version : Can't get partial CUIx Ribbon contents to show up in UI



Steve Johnson
2009-04-24, 07:22 AM
I've done a partial CUIx in 2010 (attached, remove .txt extension) containing a Ribbon panel and a tab containing that panel. I can't seem to persuade AutoCAD 2010 to use that Ribbon stuff. I've set the tab settings to merge, but no merging happens. I've attempted to get things showing up by using the Customize Workspace button in CUI and turning on the appropriate check box, but after doing so there is no sign of the panel or tab being visible in the Ribbon right-click menu or in the CUI Customize Workspace tree in the top right panel. No, I can't use Transfer, I need to point at the partial CUIx, not copy its contents into the main one.

Have I missed something, or is this as broken as it looks? Has anybody else got it working?

Doing this manually is one small step, but if the Ribbon contents merge is not going to happen automatically on CUILOAD, I will need to do it under program control, like (menucmd "P...") for pull-downs. I haven't found any documentation about how to do this. Any clues?

Steve Johnson
2009-04-24, 08:07 AM
Hmm, part of the problem may be that AutoCAD is killing the panel and tab I've created, which must surely be a bug. I've managed to capture the CUIx at the moment in time that the panel and tab still exist (attached), but soon after loading and attempting to use this partial, the panel and tab gets killed and doesn't come back.

Steve Johnson
2009-04-24, 12:20 PM
I just made a panel and tab in 2009's CUI and reminded myself why I avoided doing any non-trivial Ribbon work in it. What a crock! Bugs and annoyances everywhere (not all of which made it into 2010), buttons that aren't transparent (only the big ones aren't transparent in 2010), and huge amounts of pointless garbage thrown into every partial CUI I touched.

However, it was possible to make a panel and tab that didn't magically vanish, and I was able to manually update a workspace to display the tab. No way of adding a partial's panel to any of the main's existing tabs, it seems, and I still have no idea how I could even add a tab under program control, but at least I can cobble together something in 2009.

At this stage, it looks like custom Ribbon work is still a long way short of being fit for human consumption.

peterg1
2009-07-01, 09:21 PM
So have you made any more progress with loading your custom panel and tab? I haven't had much of a chance to work with it yet but it seemed that some of the standard panels refused to turn off just by simply unchecking the panel. Have you seen this at all?

Ed Jobe
2009-07-02, 02:46 PM
I've just recently been doing something similar, upgrading my old menus and porting toolbars to the ribbon. Some would show up in the cui, but not display. I found that this was caused by the fact that some commands had multiple Element ID's. In 2008, all my commands only have 1 ID. But when it gets converted to 2010 cuix, multiple Element ID's are possible, and some of the commands were assigned 2 or 3 ID's, some of which were duplicated. The duplicates were what was causing the ribbon panels with those commands not to display.

RobertB
2009-07-02, 03:52 PM
... But when it gets converted to 2010 cuix, multiple Element ID's are possible, and some of the commands were assigned 2 or 3 ID's, some of which were duplicated. The duplicates were what was causing the ribbon panels with those commands not to display.Ed, that's some excellent diagnosing going on there! Have you reported this to Autodesk yet?

Ed Jobe
2009-07-02, 04:05 PM
Not yet. Thanks for reminding me.