Example #1
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(
                a,
                "Importar\nníveis",
                "ImportLevel.Command",
                "Ferramentas",
                "BFS Tools")
            {
                Img  = Properties.Resources.icon,
                LImg = Properties.Resources.icon
            };
            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Importa níveis de um Link RVT selecionado.",
                LongDescription = "Selecione o Link RVT e seus links a serem importados." +
                                  "Os níveis atuais do documento serão descartados.",
                Image      = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            // adding button to panel
            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }
Example #2
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(
                a,
                "Congelar\nvistas",
                "FreezeDrawing.Command",
                "Ferramentas",
                "BFS Tools")
            {
                Img  = Properties.Resources.icons8_floco_de_neve_32,
                LImg = Properties.Resources.icons8_floco_de_neve_32
            };
            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Congela a vista atual em uma vista de desenho.",
                LongDescription = "",
                Image           = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage      = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            // adding button to panel
            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }
Example #3
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(
                a,
                "Detalhar\nchapas",
                "CreatePlateDetail.Command",
                "Detalhamento",
                "BFS Tools")
            {
                Img  = Properties.Resources.icons8_pintura_metálica_36,
                LImg = Properties.Resources.icons8_pintura_metálica_36,
            };

            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Cria um detalhe em planta e um em corte para cada tipo de chapa existente.",
                LongDescription = "A ferramenta busca pelas chapas metálicas, e de acordo com o tipo especificado" +
                                  "no parâmetro Comentários cria os detalhes, um em planta, e um em corte.",
                Image      = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            revitAddIn.AssertTabExistence();
            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }
Example #4
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(
                a,
                "PDF",
                "PrintToPdf.Command",
                "Exportar",
                "BFS Tools")
            {
                Img  = Properties.Resources.icon,
                LImg = Properties.Resources.icon
            };

            revitAddIn.AssertTabExistence();

            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Exporta as pranchas para PDF",
                LongDescription = "",
                Image           = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage      = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }
Example #5
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(
                a,
                "Recortar\nvigas",
                "BeamCoping.Command",
                "Ferramentas",
                "BFS Tools")
            {
                Img  = Properties.Resources.icon,
                LImg = Properties.Resources.icon
            };

            revitAddIn.AssertTabExistence();

            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Cria um recorte entre viga primária e secundária.",
                LongDescription = "",
                Image           = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage      = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }
Example #6
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(
                a,
                "Deletar\nvistas",
                "DeleteViews.Command",
                "Limpeza",
                "BFS Tools")
            {
                Img  = Properties.Resources.icon,
                LImg = Properties.Resources.icon,
            };

            revitAddIn.AssertTabExistence();

            // creating push button data
            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Deleta as vistas selecionadas.",
                LongDescription = "",
                Image           = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage      = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            // adding button to panel
            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }
Example #7
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(
                a,
                "Gerenciar\nNíveis",
                "ManageLevels.Command",
                "Ferramentas",
                "BFS Tools")
            {
                Img  = Properties.Resources.icon,
                LImg = Properties.Resources.icon,
            };

            revitAddIn.AssertTabExistence();

            // creating push button data
            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Abre um gerenciador de níveis.",
                LongDescription = "",
                Image           = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage      = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            // adding button to panel
            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }
Example #8
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(
                a,
                "Selecionar",
                "QuickSelect.Command",
                "Ferramentas",
                "BFS Tools")
            {
                Img  = Properties.Resources.icons8_lista_36,
                LImg = Properties.Resources.icons8_lista_36
            };
            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Seleciona as famílias escolhidas.",
                LongDescription = "Selecione os objetos a serem selecionados." +
                                  "Os níveis atuais do documento serão descartados.",
                Image      = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            // adding button to panel
            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }
Example #9
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(
                a,
                "Limpar\nprojeto",
                "LimparProjeto.Command",
                "Limpeza",
                "BFS Tools")
            {
                Img  = Properties.Resources.icon,
                LImg = Properties.Resources.icon
            };

            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Deleta instâncias das categorias selecionadas.",
                LongDescription = "",
                Image           = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage      = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }
Example #10
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(
                a,
                "Atualizar\nrevisões",
                "UpdateRevisions.Command",
                "Ferramentas",
                "BFS Tools")
            {
                Img  = Properties.Resources.icon,
                LImg = Properties.Resources.icon
            };
            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Atualiza as revisões nas pranchas.",
                LongDescription = "",
                Image           = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage      = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            // adding button to panel
            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }
Example #11
0
        public Result OnStartup(UIControlledApplication a)
        {
            RevitAddIn revitAddIn = new RevitAddIn(a,
                                                   "Criar\nplantas",
                                                   "CreatePlanViewBasedOnLevels.Command",
                                                   "Ferramentas",
                                                   "BFS Tools"
                                                   )
            {
                Img  = Properties.Resources.icon,
                LImg = Properties.Resources.icon
            };

            revitAddIn.AssertTabExistence();

            PushButtonData pushButtonData = new PushButtonData(revitAddIn.Name,
                                                               revitAddIn.Name,
                                                               Assembly.GetExecutingAssembly().Location,
                                                               revitAddIn.ClassName)
            {
                ToolTip         = "Cria uma planta para cada nível selecionado.",
                LongDescription = "",
                Image           = revitAddIn.GetImageSource(revitAddIn.Img),
                LargeImage      = revitAddIn.GetImageSource(revitAddIn.LImg)
            };

            _ = revitAddIn.GetRibbonPanel().AddItem(pushButtonData) as PushButton;

            return(Result.Succeeded);
        }