public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements) { uidoc = commandData.Application.ActiveUIDocument; Document doc = uidoc.Document; allBeams = new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_StructuralFraming).OfClass(typeof(FamilyInstance)).ToList(); if (allBeams.Count == 0) { message = Properties.Messages.RenumberBeams_NoBeamFamilyLoaded; return(Result.Failed); } RenumberBeamsUI reBeamsUI = new RenumberBeamsUI(); if (reBeamsUI.ShowDialog() == true) { DoTheRenumberingBeams(); } return(Result.Succeeded); }
public RenumberBeamTypesUI(RenumberBeamsUI parentUI) { InitializeComponent(); parentBeamUI = parentUI; }
public RenumberBeamLevelUI(RenumberBeamsUI targetParentWindow) { InitializeComponent(); parentWindow = targetParentWindow; }