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); }
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); }
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); }
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); }
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); }
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); }