Skip to content

Commit 522f2e6

Browse files
update readme
1 parent e5bbe53 commit 522f2e6

File tree

1 file changed

+46
-8
lines changed

1 file changed

+46
-8
lines changed

README.md

Lines changed: 46 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,54 @@
11
# Revit Ribbon Sample
22

3-
This sample contains sample revit IExternalApplication, that contains creation of ribbon button in fluent style and moving it to the system tab
3+
This sample contains sample revit IExternalApplication, that contains creation of ribbon buttons in fluent style
44

5-
panel = Ribbon.GetApplicationRibbon(application)
6-
.Tab("Мой tab")
7-
.Panel("Моя панелька", new CamelCaseToUnderscoreWithPrefixNameConvention(Resources.CompanyName))
8-
.CreateButton<Command>("Just test", button =>
5+
Ribbon.GetApplicationRibbon(application)
6+
.Tab("My tab")
7+
.Panel("My panel", new CamelCaseToUnderscoreWithPrefixNameConvention(Resources.CompanyName))
8+
.CreateButton<DummyCommand>("Just test", button =>
99
button
1010
.SetLargeImage(Resources.UndefinedIcon32)
11-
.SetSmallImage(Resources.UndefinedIcon16));
12-
13-
panel.MoveToSystemTab<Command>("Collaborate", "central_file_shr");
11+
.SetSmallImage(Resources.UndefinedIcon16)
12+
.SetHelpUrl("https://github.com/CADBIMDeveloper/RevitRibbonSample"))
13+
.CreateSplitButton("MY_SPLIT_BTN", "Split\nbutton",
14+
splitButton =>
15+
splitButton
16+
.CreateButton<DummyCommand1>("Split button 1",
17+
button => button
18+
.SetLargeImage(Resources.Crazy32)
19+
.SetSmallImage(Resources.Crazy16)
20+
.SetLongDescription("I'm available only in plan views")
21+
.SetAvailability<DummyCommand1>()
22+
.SetDefault())
23+
.CreateButton<DummyCommand2>("Split button 2",
24+
button => button
25+
.SetLargeImage(Resources.Biohazard_32)
26+
.SetSmallImage(Resources.Biohazard_16)))
27+
.CreatePullDownButton("MY_PULLDOWN_BTN", "Pulldown\nbutton",
28+
pulldownButton =>
29+
pulldownButton
30+
.CreateButton<DummyCommand3>("Command 3")
31+
.CreateButton<DummyCommand4>("Command 4")
32+
.SetLargeImage(Resources.metro32)
33+
.SetSmallImage(Resources.metro16))
34+
.CreateSeparator()
35+
.CreateStackedItems(item =>
36+
item
37+
.CreateButton<DummyCommand5>("Command 5",
38+
button =>
39+
button
40+
.SetLargeImage(Resources.exportDWG_32)
41+
.SetSmallImage(Resources.exportDWG_16))
42+
.CreateButton<DummyCommand6>("Command 6",
43+
button =>
44+
button
45+
.SetLargeImage(Resources.export_32)
46+
.SetSmallImage(Resources.export_16))
47+
.CreateButton<DummyCommand7>("Command 7",
48+
button =>
49+
button
50+
.SetLargeImage(Resources.acad_import_32)
51+
.SetSmallImage(Resources.acad_import_16)));
1452

1553
Project RevitUtils, that allows creation of ribon items in fluent style originated from Victor's VCRevitRibbonUtil https://github.com/chekalin-v/VCRevitRibbonUtil, but it contains some improvements.
1654

0 commit comments

Comments
 (0)