We have demonstrated how to generate Revit ribbon creation code automatically in either C# or VB.NET with the assistance of the Ribbon Creator of Revit Addin Wizard (RevitAddinWizard) many times before. The Revit Ribbon Creator provides a cool user interface to help collect necessary data for all available ribbon groups and items, assign images big or small to them, and set up associations between Revit ribbon buttons and external commands.
The Ribbon Creator has been enhanced dramatically to facilitate the Revit .NET API ribbon creation work much better. The most noted new features are the Revit Ribbon Definition schema invention and the ribbon creator row/item edition.
In this post, let us see how the Undo and Redo commands under the Edit menu can offer to us:
If one row of the current Revit Ribbon Definition is selected (highlighted) as such:
and the Cut command is clicked, the row (the Panel/PushButton with the name PushButton 3) will be gone:
If we want it back right after the Cut operation, we can click the Undo command:
If we want the row disappear again, we can click the Redo command. In case nothing happens in between, the Undo and Redo can make the above happen back and forth.
Enjoy!
The new Ribbon Creator of RevitAddinWizard makes Revit programmers’ life much easier for both C# lovers and VB.NETers.
Recent Comments