コード例 #1
0
ファイル: LODapp.cs プロジェクト: ErwinMeulman/LODParameter
        private void AddRibbonItems(RibbonPanel panel)
        {
            string         location = Assembly.GetExecutingAssembly().Location;
            string         str      = location.Remove(location.Length - "Contents\\LODParameter.dll".Length);
            string         str2     = str + "Resources\\Icons\\";
            PushButtonData val      = new PushButtonData("CreateLODparameter", "Create\nParameters", location, "LODParameter.CreateLODParameter");

            val.set_AvailabilityClassName("LODParameter.CreateParametersButtonAvailability");
            val.SetContextualHelp(new ContextualHelp(2, "http://www.ikerd.com/lodmanager/user-guide"));
            PushButton val2 = panel.AddItem(val) as PushButton;

            val2.set_ToolTip("Create LOD parameters for this document");
            val2.set_LongDescription("Adds Current and Target LOD fields and MEA to each element in document.\nYou must run this command before using other LOD-related commands");
            val2.set_LargeImage((ImageSource) new BitmapImage(new Uri(str2 + "LODCREATEICON.png")));
            PushButtonData val3 = new PushButtonData("SetLOD", "Set\nLOD", location, "LODParameter.SetLODofSelection");

            val3.set_AvailabilityClassName("LODParameter.ParameterRequiredButtonAvailability");
            val3.SetContextualHelp(new ContextualHelp(2, "http://www.ikerd.com/lodmanager/user-guide"));
            PushButton val4 = panel.AddItem(val3) as PushButton;

            val4.set_ToolTip("Set LOD of Selection");
            val4.set_LongDescription("Sets the LOD of all selected items.\nSelect a detail view to set the LOD of all items in that view.");
            val4.set_LargeImage((ImageSource) new BitmapImage(new Uri(str2 + "SETLODICON.png")));
            PushButtonData val5 = new PushButtonData("LODfilters", "LOD\nFilters", location, "LODParameter.FilterByLOD");

            val5.set_AvailabilityClassName("LODParameter.ParameterRequiredButtonAvailability");
            val5.SetContextualHelp(new ContextualHelp(2, "http://www.ikerd.com/lodmanager/user-guide"));
            PushButton val6 = panel.AddItem(val5) as PushButton;

            val6.set_ToolTip("Apply graphical LOD filters");
            val6.set_LongDescription("Applys visibility graphics filters such as coloring,transparency, and visibility to items based on their LOD.");
            val6.set_LargeImage((ImageSource) new BitmapImage(new Uri(str2 + "FILTERLODICON.png")));
        }
コード例 #2
0
        public Result OnStartup(UIControlledApplication application)
        {
            //IL_000f: Unknown result type (might be due to invalid IL or missing references)
            //IL_001f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0026: Unknown result type (might be due to invalid IL or missing references)
            //IL_002b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0032: Unknown result type (might be due to invalid IL or missing references)
            //IL_0037: Unknown result type (might be due to invalid IL or missing references)
            //IL_0038: Unknown result type (might be due to invalid IL or missing references)
            //IL_004d: Unknown result type (might be due to invalid IL or missing references)
            //IL_0052: Unknown result type (might be due to invalid IL or missing references)
            //IL_0057: Expected O, but got Unknown
            //IL_005c: Unknown result type (might be due to invalid IL or missing references)
            //IL_005d: Unknown result type (might be due to invalid IL or missing references)
            //IL_0069: Unknown result type (might be due to invalid IL or missing references)
            //IL_007a: Unknown result type (might be due to invalid IL or missing references)
            //IL_008b: Unknown result type (might be due to invalid IL or missing references)
            //IL_008c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0093: Unknown result type (might be due to invalid IL or missing references)
            //IL_009a: Unknown result type (might be due to invalid IL or missing references)
            //IL_00af: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b4: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b9: Expected O, but got Unknown
            //IL_00be: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c0: Unknown result type (might be due to invalid IL or missing references)
            //IL_00cd: Unknown result type (might be due to invalid IL or missing references)
            //IL_00df: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f1: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f3: Unknown result type (might be due to invalid IL or missing references)
            //IL_00fb: Unknown result type (might be due to invalid IL or missing references)
            //IL_00ff: Unknown result type (might be due to invalid IL or missing references)
            this.m_MyForm = null;
            string text = "Hot Gear";

            try
            {
                application.CreateRibbonTab(text);
            }
            catch
            {
            }
            RibbonPanel    val            = application.CreateRibbonPanel(text, "Parameter Explorer");
            ContextualHelp contextualHelp = new ContextualHelp(2, "https://hotgearproject.wordpress.com/hot-gear-project-2/");
            PushButton     val2           = val.AddItem(new PushButtonData("HotGear_IPE", "Instance", HotGearPackage.AddInPath, "InstanceParameterCollector")) as PushButton;

            val2.set_ToolTip("Collect Project Instance Elements Data");
            val2.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Instance.png"));
            val2.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Instance_s.png"));
            val2.SetContextualHelp(contextualHelp);
            val.AddSeparator();
            PushButton val3 = val.AddItem(new PushButtonData("HotGear_TPE", "Type", HotGearPackage.AddInPath, "TypeParameterCollector")) as PushButton;

            val3.set_ToolTip("Collect Project Type Elements Data");
            val3.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Type.png"));
            val3.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Type_s.png"));
            val3.SetContextualHelp(contextualHelp);
            return(0);
        }
コード例 #3
0
 public Result OnStartup(UIControlledApplication application)
 {
     //IL_0009: Unknown result type (might be due to invalid IL or missing references)
     //IL_0032: Unknown result type (might be due to invalid IL or missing references)
     //IL_0048: Unknown result type (might be due to invalid IL or missing references)
     //IL_004a: Unknown result type (might be due to invalid IL or missing references)
     //IL_004f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0054: Unknown result type (might be due to invalid IL or missing references)
     //IL_0057: Unknown result type (might be due to invalid IL or missing references)
     //IL_005c: Unknown result type (might be due to invalid IL or missing references)
     //IL_005e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0075: Unknown result type (might be due to invalid IL or missing references)
     //IL_007a: Unknown result type (might be due to invalid IL or missing references)
     //IL_007f: Expected O, but got Unknown
     //IL_007f: Unknown result type (might be due to invalid IL or missing references)
     //IL_0084: Unknown result type (might be due to invalid IL or missing references)
     //IL_0086: Unknown result type (might be due to invalid IL or missing references)
     //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
     //IL_00ca: Unknown result type (might be due to invalid IL or missing references)
     //IL_00e7: Unknown result type (might be due to invalid IL or missing references)
     //IL_00ec: Unknown result type (might be due to invalid IL or missing references)
     //IL_00ee: Unknown result type (might be due to invalid IL or missing references)
     //IL_00f0: Unknown result type (might be due to invalid IL or missing references)
     //IL_00f9: Unknown result type (might be due to invalid IL or missing references)
     //IL_010e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0113: Unknown result type (might be due to invalid IL or missing references)
     try
     {
         string text = "HTSS Add-Ins";
         try
         {
             application.CreateRibbonTab(text);
         }
         catch (ArgumentException)
         {
         }
         catch (InvalidOperationException)
         {
             text = string.Empty;
         }
         string      text2 = "Family Manager Basic";
         string      text3 = "Family Manager Basic";
         RibbonPanel val3  = null;
         val3 = ((!(text == string.Empty)) ? application.CreateRibbonPanel(text, text2) : application.CreateRibbonPanel(text2));
         PushButton val4 = val3.AddItem(new PushButtonData(text3, text3, FamMgrBasicAppln.AddInPath, typeof(FamMgrBasicCmd).FullName));
         val4.set_LargeImage((ImageSource) new BitmapImage(new Uri(Path.Combine(FamMgrBasicAppln.IconsFolder, "FM32.png"), UriKind.Absolute)));
         val4.set_Image((ImageSource) new BitmapImage(new Uri(Path.Combine(FamMgrBasicAppln.IconsFolder, "FM32.png"), UriKind.Absolute)));
         val4.set_ToolTip("Load and save families from other revit projects");
         ContextualHelp contextualHelp = new ContextualHelp(3, FamMgrBasicAppln.IconsFolder + "\\FMB_help.chm");
         val4.SetContextualHelp(contextualHelp);
         return(0);
     }
     catch (Exception ex)
     {
         FamMgr_Util.ShowMessage(ex.ToString());
         return(-1);
     }
 }
コード例 #4
0
        public Result OnStartup(UIControlledApplication application)
        {
            string text = "Hot Gear";

            try
            {
                application.CreateRibbonTab(text);
            }
            catch
            {
            }
            RibbonPanel     val            = application.CreateRibbonPanel(text, "Element Merger");
            ContextualHelp  contextualHelp = new ContextualHelp(2, "https://hotgearproject.gitbooks.io/hotgear-project/content/element_merger.html");
            SplitButtonData val2           = new SplitButtonData("HotGear", "HotGear");
            SplitButton     val3           = val.AddItem(val2) as SplitButton;
            PushButton      val4           = val3.AddPushButton(new PushButtonData("JoinAll", "Join All", HotGearPackage.AddInPath, "JoinAll"));

            val4.set_ToolTip("Join All Selected Category in Project.");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.JoinAll.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.JoinAll_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("JoinPush", "Join Selection", HotGearPackage.AddInPath, "JoinElement"));
            val4.set_ToolTip("Join Revit Current Selection Element.");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Join.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Join_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("UnjoinPush", "Unjoin Selection", HotGearPackage.AddInPath, "UnjoinElement"));
            val4.set_ToolTip("Unjoin Revit Current Selection Element.");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Unjoin.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Unjoin_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("SwitchPush", "Switch Join Order", HotGearPackage.AddInPath, "SwitchJoinOrder"));
            val4.set_ToolTip("Switch Join Order of Revit Current Selection Element.");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Switch.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Switch_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("CutPush", "Cut Selection", HotGearPackage.AddInPath, "CutElement"));
            val4.set_ToolTip("Cut Revit Current Selection Element.");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Cut.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Cut_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("UnCutPush", "UnCut Selection", HotGearPackage.AddInPath, "UnCutElement"));
            val4.set_ToolTip("UnCut Revit Current Selection Element.");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.UnCut.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.UnCut_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("About", "About", HotGearPackage.AddInPath, "About"));
            val4.set_ToolTip("About HotGear Project");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.gear32.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.gear16.png"));
            val4.SetContextualHelp(contextualHelp);
            return(0);
        }
コード例 #5
0
        public Result OnStartup(UIControlledApplication application)
        {
            string text = "Hot Gear";

            try
            {
                application.CreateRibbonTab(text);
            }
            catch
            {
            }
            RibbonPanel     val            = application.CreateRibbonPanel(text, "Wall Join Controller");
            ContextualHelp  contextualHelp = new ContextualHelp(2, "https://hotgearproject.gitbooks.io/hotgear-project/content/");
            SplitButtonData val2           = new SplitButtonData("HotGear", "HotGear");
            SplitButton     val3           = val.AddItem(val2) as SplitButton;
            PushButton      val4           = val3.AddPushButton(new PushButtonData("SquareOff", "Join SquareOff", HotGearPackage.AddInPath, "WallJoin_SquareOff"));

            val4.set_ToolTip("Wall Join Type : SquareOff");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Square_off.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Square_off_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("Butt", "Join Butt", HotGearPackage.AddInPath, "WallJoin_Butt"));
            val4.set_ToolTip("Wall Join Type : Butt");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Butt.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Butt_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("Miter", "Join Miter", HotGearPackage.AddInPath, "WallJoin_Miter"));
            val4.set_ToolTip("Wall Join Type : Miter");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Miter.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Miter_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("AllowJoin", "Join Allow", HotGearPackage.AddInPath, "WallJoin_Allow"));
            val4.set_ToolTip("Wall Join : Allow");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Allow.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.Allow_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("DisallowJoin", "Join DisAllow", HotGearPackage.AddInPath, "WallJoin_Disallow"));
            val4.set_ToolTip("Wall Join : Disallow");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.DisAllow.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.DisAllow_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("About", "About", HotGearPackage.AddInPath, "About"));
            val4.set_ToolTip("About HotGear Project");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.gear32.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.gear16.png"));
            val4.SetContextualHelp(contextualHelp);
            return(0);
        }
コード例 #6
0
        public Result OnStartup(UIControlledApplication application)
        {
            //IL_0008: Unknown result type (might be due to invalid IL or missing references)
            //IL_0018: Unknown result type (might be due to invalid IL or missing references)
            //IL_001f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0024: Unknown result type (might be due to invalid IL or missing references)
            //IL_002b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0030: Unknown result type (might be due to invalid IL or missing references)
            //IL_003b: Unknown result type (might be due to invalid IL or missing references)
            //IL_0040: Unknown result type (might be due to invalid IL or missing references)
            //IL_0041: Unknown result type (might be due to invalid IL or missing references)
            //IL_0042: Unknown result type (might be due to invalid IL or missing references)
            //IL_0043: Unknown result type (might be due to invalid IL or missing references)
            //IL_0048: Expected O, but got Unknown
            //IL_004d: Unknown result type (might be due to invalid IL or missing references)
            //IL_004f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0065: Unknown result type (might be due to invalid IL or missing references)
            //IL_006a: Unknown result type (might be due to invalid IL or missing references)
            //IL_006f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0071: Unknown result type (might be due to invalid IL or missing references)
            //IL_007e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0090: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a2: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a4: Unknown result type (might be due to invalid IL or missing references)
            //IL_00ab: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c1: Unknown result type (might be due to invalid IL or missing references)
            //IL_00c6: Unknown result type (might be due to invalid IL or missing references)
            //IL_00cb: Unknown result type (might be due to invalid IL or missing references)
            //IL_00cd: Unknown result type (might be due to invalid IL or missing references)
            //IL_00da: Unknown result type (might be due to invalid IL or missing references)
            //IL_00ec: Unknown result type (might be due to invalid IL or missing references)
            //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
            //IL_0100: Unknown result type (might be due to invalid IL or missing references)
            //IL_0108: Unknown result type (might be due to invalid IL or missing references)
            //IL_010c: Unknown result type (might be due to invalid IL or missing references)
            string text = "Hot Gear";

            try
            {
                application.CreateRibbonTab(text);
            }
            catch
            {
            }
            RibbonPanel     val            = application.CreateRibbonPanel(text, "Family Extractor");
            ContextualHelp  contextualHelp = new ContextualHelp(2, "https://hotgearproject.gitbooks.io/hotgear-project/content/6.family_extractor.html");
            SplitButtonData val2           = new SplitButtonData("HotGear", "HotGear");
            SplitButton     val3           = val.AddItem(val2) as SplitButton;
            PushButton      val4           = val3.AddPushButton(new PushButtonData("FamilyExtractor", "Family Extractor", HotGearPackage.AddInPath, "FamilyExtractor"));

            val4.set_ToolTip("Extractor All Selected Category Family in Project.");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.FamilyExtractor.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.FamilyExtractor_s.png"));
            val4.SetContextualHelp(contextualHelp);
            val4 = val3.AddPushButton(new PushButtonData("About", "About", HotGearPackage.AddInPath, "About"));
            val4.set_ToolTip("About HotGear Project");
            val4.set_LargeImage(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.gear32.png"));
            val4.set_Image(HotGearPackage.RetriveImage("HotGearAllInOne.Resources.gear16.png"));
            val4.SetContextualHelp(contextualHelp);
            return(0);
        }