Converting code based ribbon tab elements to CUI elements

Converting code based ribbon tab elements to CUI elements

Anonymous
Not applicable
839 Views
4 Replies
Message 1 of 5

Converting code based ribbon tab elements to CUI elements

Anonymous
Not applicable

Hi,

I want to convert some plugin code that creates a toggle button and a dropdown without icons to CUI based elements.

 

In the case of the toggle button, in the unpressed state it is configured to display an icon that represents that state and call one command and when in the pressed state the icon is changed to represent that state and is reconfigured to call the  second command and vice versa when clicked again.

 

In the case of the drop down, it is a list of text items (no icons) each with a corresponding command. The list is extended in code as the environment changes.

 

Does anyone know if this can be achieved with the CUI?

 

0 Likes
840 Views
4 Replies
Replies (4)
Message 2 of 5

DannyNL
Advisor
Advisor

As far as I know it's not possible with LISP to manipulate (read/write) the contents of the ribbon. You might have better luck asking this question in the .NET forum >>> Click Here <<<

0 Likes
Message 3 of 5

Anonymous
Not applicable

Thanks for your reply. This isn't a LISP question; it is a CUI usage question.

 

The moderator moved it to this forum but I don't know why?

0 Likes
Message 4 of 5

DannyNL
Advisor
Advisor

Probably because changes to the CUI belongs to 'General Customization', which is part of this forum.

 

However, the CUI doesn't support what you need out-of-the-box AFAIK and if possible at all it will require some programming to get the job done.

But the other part of this forum AutoLISP and Visual LISP will not be sufficient I'm afraid as these programming languages cannot manipulate the contents of the ribbon among other things, so it will be no good to try to solve your question.

 

Hence my suggestion to post your question in the .NET forum as I'm almost sure it can be done with .NET. What you want doesn't sound easy though but someone in that forum may be able to help you.

0 Likes
Message 5 of 5

Anonymous
Not applicable

Thanks DannyNL, 

I do it now in .NET but was hoping to do it in CUI alone. I'll have to compromise and mix the two which is a messy approach IMO.

0 Likes