Result IExternalCommand.Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { //initialize helper var rch = new RevitCommandHelper(commandData); var doc = rch.ActiveDoc; var assembly = new AssemblyMgrAssembly(rch); assembly.CreateBillOfMaterials(); return(Result.Succeeded); }
Result IExternalCommand.Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { //initialize helper var rch = new RevitCommandHelper(commandData); var doc = rch.ActiveDoc; var assembly = new AssemblyMgrAssembly(rch); assembly.Create2DView(AssemblyDetailViewOrientation.ElevationFront); var view = assembly.Views[0]; assembly.DimensionAllElements(view as ViewSection); return(Result.Succeeded); }
Result IExternalCommand.Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { //initialize helper var rch = new RevitCommandHelper(commandData); var assembly = new AssemblyMgrAssembly(rch); //var formData = new FormData(rch, assembly); assembly.FormData.SelectedTitleBlock = "FabPro_CutSheet_11x17"; assembly.Create2DView(AssemblyDetailViewOrientation.ElevationTop); assembly.Create2DView(AssemblyDetailViewOrientation.ElevationFront); assembly.Create3DView(); assembly.CreateBillOfMaterials(); var sheet = new AssemblyMgrSheet(rch, assembly.FormData, assembly); return(Result.Succeeded); }