diff --git a/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/AreaHelper_script.py b/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/AreaHelper_script.py index e528612..14703dc 100644 --- a/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/AreaHelper_script.py +++ b/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/AreaHelper_script.py @@ -2,7 +2,7 @@ import revitron import pyrevit -from qualitron import AreaHelperManager,AreaHelperWindow +from qualitron import AreasHelperManager, AreasHelperWindow import Autodesk.Revit.UI as ui if __name__ == "__main__": @@ -11,9 +11,8 @@ selection = revitron.Selection.get() runWindow = True - # Select areas function if selection: - areaIds = AreaHelperManager.selectAreas(selection) + areaIds = AreasHelperManager.selectTargets(selection,'AreasHelper_') if areaIds: count = str(len(areaIds)) decide = ui.TaskDialog.Show("AreaHelper","Select " + count + " area(s)?", @@ -24,12 +23,11 @@ runWindow = False revitron.Selection.set(areaIds) - # If no selection, show window if runWindow: revitron.DOC.MassDisplayTemporaryOverride = revitron.DB\ .MassDisplayTemporaryOverrideType\ .ShowMassFormAndFloors - main = AreaHelperWindow(xamlfile, - AreaHelperManager()) + main = AreasHelperWindow(xamlfile, + AreasHelperManager()) main.Show() diff --git a/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/Thumbs.db b/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/Thumbs.db new file mode 100644 index 0000000..ea15015 Binary files /dev/null and b/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/Thumbs.db differ diff --git a/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/icon.png b/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/icon.png index 57ba7ea..1e5a86d 100644 Binary files a/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/icon.png and b/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/icon.png differ diff --git a/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/ui.xaml b/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/ui.xaml index 9fda03c..72a1aa4 100644 --- a/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/ui.xaml +++ b/Revitron.tab/Qualitron.panel/AreaHelper.pushbutton/ui.xaml @@ -92,27 +92,29 @@ - - - - - + + + + + + + @@ -121,23 +123,23 @@ -