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.
After some Revit Ribbon Definition rows are created or a RRD file is loaded from disk, we can highlight (select) a few rows and copy them to memory by clicking the Copy item under the main Edit menu:
then we can relocate the current row and click the Paste command from the same Edit menu to paste (insert) the just copied rows to above the row:
Here is the post-paste look of the same Revit Ribbon Definition:
Following the same Windows Cut rule, if a few rows are cut by the Menu->Cut command, the Paste command can still insert them back to above the current row, so Cut followed by Paste behaves just like Move.
Select All is self explanatory. It will highlight (select) all available rows in the Revit Ribbon Definition.
Undo and Redo are magic. We are going to introduce them in detail soon. Please stay tuned.
The new Ribbon Creator of RevitAddinWizard makes Revit programmers’ life much easier for both C# lovers and VB.NETers.
Recent Comments