예제 #1
0
        //******************************************************************************
        //**************Ribbon Creation Example*****************************************
        private void BiuldExampleRibbon()
        {
            //Creates Tab and Panel
            ThisAppRibbon = new Ribbon(ThisUIApp, "Example Panel");

            //Loads contextual help from resources
            ContextualHelp Help = new ContextualHelp(ContextualHelpType.ChmFile,
                                                     Path.GetDirectoryName(AssemblyPath) + @"\Engineering Lighting Tools.chm");

            //Adds Push Button 1
            ThisAppRibbon.AddPushButton("Command 1", "Run Command 1"
                                        , AssemblyPath, "EntryPoint.RevitCommands.Command1",
                                        "Lighting Fixtures Costs Manager", Help,
                                        "EntryPoint.RevitCommands.Command1");
        }