Create a toggle button on ribbon

Create a toggle button on ribbon

Anonymous
Not applicable
2,074 Views
1 Reply
Message 1 of 2

Create a toggle button on ribbon

Anonymous
Not applicable

how to create a toggle button just as button "Show"GUID-C05ED20D-DF27-46BB-9D62-B7E74D49C458(which shows the Work Plane of a View )

 

cp1.JPG

 

0 Likes
2,075 Views
1 Reply
Reply (1)
Message 2 of 2

aignatovich
Advisor
Advisor

Hi!

Look at this example: http://thebuildingcoder.typepad.com/blog/2012/11/roll-your-own-toggle-button.html

 

You can also change button icon in the same way. You can also take a look at my https://github.com/CADBIMDeveloper/RevitRibbonSample/tree/master/RevitUtils project.

 

It allows to define ribbon items in fluent style and has search functionality, you can find your button via panel.Find<YourIExternalCommandClass>() if it has been defined via this framework