.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

there is an event at the show of multiselect ribbontab?

4 REPLIES 4
Reply
Message 1 of 5
mario.rosenbohm
534 Views, 4 Replies

there is an event at the show of multiselect ribbontab?

Hello,

 

there is an event at the show of multiselect ribbontab on Civil3D?

 

regards Mario

4 REPLIES 4
Message 2 of 5

Can you give us some more information? 

 

At the show? Do you mean when the Ribbon Tab is loaded?

Message 3 of 5

Hello,

I programming a Tool to set elevation from Selected objects to input Value, parsing layername or flatten to input value.
The reference for elevation (z-axis=0.0)  is possible world or current ucs. To visible the current reference i change
the icon from ribbonbutton. That all works fine. To change  the icon i use the "Autodesk.Windows.RibbonButton"  because the "Autodesk.AutoCAD.Customization.RibbonButton" has no "Image and LargeImage" property.

 

In Civil3D activate on multiple objecttype-selection a new ribbon tab from 'state-kontextsensitive-multiselect-tab' (sorry i have only a german civil). On cui i have bound the ribbongroup to this tabs. If the tab is shown i must change the 'reference-ribbonbutton-icon'.

 

A solutions approach might also 'how do I get one from a  "Autodesk.AutoCAD.Customization.RibbonButton" a "Autodesk.Windows.RibbonButton"'?

--------------------------------------------------------------------------------
  At the show? Do you mean when the Ribbon Tab is loaded?

--------------------------------------------------------------------------------
Or even this.


regards Mario

 

Message 4 of 5

Sorry, 

 

I don't understand your question very well. 

Maybe use the Copy or Clone method to copy it to the Other type of object? Just taking a guess. 

 

I took a look at the RibbonButton Classes in 

Autodesk.Windows & Autodesk.AutoCAD.Customization.

 

You may want to try asking this question in the ARX development area. 

(http://forums.autodesk.com/t5/Autodesk-ObjectARX/bd-p/34)

 

But maybe this might help.

Sorry, I know not much help. Smiley Frustrated

Good luck!

Message 5 of 5

Hi Mario,

 

From what I understand, are you looking for an event that will let you know that the Ribbon is initialized.

 

Have you tried using the "Autodesk.Windows.ComponentManager.ItemInitialized" event ?

In the event handler, you can check if the ribbon is not null and then you know for sure that the Ribbon is ready.

 

 

void ComponentManager_ItemInitialized(object sender, RibbonItemEventArgs e)
{
    if (Autodesk.Windows.ComponentManager.Ribbon != null)
    {
         // Ribbon is ready...
    }
}

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost