/// <summary> /// Initializes all interface elements on custom created Revit tab. /// </summary> /// <param name="app">The application.</param> public void Initialize(UIControlledApplication app) { // Create ribbon tab. string tabName = "Artelia VN"; app.CreateRibbonTab(tabName); // Create the ribbon panels. var exportCommandsPanel = app.CreateRibbonPanel(tabName, "Export"); #region manager var familyManagerShowButtonData = new RevitPushButtonDataModel { Label = "Export\nSchedules", Panel = exportCommandsPanel, Tooltip = "This command is used to export multiple Schedule\nat the same time", CommandNamespacePath = ExportCSVCommand.GetPath(), IconImageName = "MSExcel.ico", TooltipImageName = "MSExcel.ico" }; var familyManagerShowButton = RevitPushButton.Create(familyManagerShowButtonData); #endregion }
public ExportDrawingListMainView(ExportCSVCommand exportCSVCommand) { _exportCSVCommand = exportCSVCommand; var x = CustomPropertyValueEditor.Element; InitializeComponent(); DataContext = _exportCSVViewModel = new ExportCSVViewModel(_exportCSVCommand); }
public ExportCSVViewModel(ExportCSVCommand exportCSVCommand) { _exportCSVCommand = exportCSVCommand; _uidoc = _exportCSVCommand.uidoc; _app = _exportCSVCommand.app; _doc = _exportCSVCommand.doc; _projectname = "Project Name"; _location = "Location of Project"; _title = "Drawing List"; _filepath = "Please click \"Browse\""; SetImage(); this.ChangeImageCommand = new ActionCommand(this.ChangeImage); this.MouseDownCommand = new ActionCommand(this.SetGridFocus); LoadCommand = new RelayCommand(GetWebPage); SaveCommand = new RelayCommand(SaveToART); ExportCbndBtnCommand = new RelayCommand(ExportCbnButton, CanClickButton); GetAllViewSchedule(); }