diff --git a/src/blenderbim/blenderbim/bim/__init__.py b/src/blenderbim/blenderbim/bim/__init__.py index e30874b23c..0ec9cfb9c7 100644 --- a/src/blenderbim/blenderbim/bim/__init__.py +++ b/src/blenderbim/blenderbim/bim/__init__.py @@ -103,17 +103,19 @@ classes = [ ui.BIM_UL_topics, ui.BIM_ADDON_preferences, #scene panel groups --> - ui.BIM_PT_project_and_template_setup, + ui.BIM_PT_project_setup, ui.BIM_PT_utilities, - ui.BIM_PT_collaboration_and_data_exchange, - ui.BIM_PT_geometry_and_spatial_structure, + ui.BIM_PT_collaboration, + ui.BIM_PT_geometry, ui.BIM_PT_4D5D, ui.BIM_PT_structural, + ui.BIM_PT_services, ui.BIM_PT_misc, ui.BIM_PT_quality_control, #object panel groups --> - ui.BIM_PT_geometry_and_spatial_structure_object, - ui.BIM_PT_object_attributes_properties_and_relationships, + ui.BIM_PT_object_metadata, + ui.BIM_PT_geometry_object, + ui.BIM_PT_services_object, ui.BIM_PT_utilities_object, ui.BIM_PT_misc_object ] diff --git a/src/blenderbim/blenderbim/bim/module/aggregate/ui.py b/src/blenderbim/blenderbim/bim/module/aggregate/ui.py index d37b018772..370a02e32e 100644 --- a/src/blenderbim/blenderbim/bim/module/aggregate/ui.py +++ b/src/blenderbim/blenderbim/bim/module/aggregate/ui.py @@ -28,7 +28,7 @@ class BIM_PT_aggregate(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_object_metadata" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/attribute/ui.py b/src/blenderbim/blenderbim/bim/module/attribute/ui.py index c250a5f1b7..b99654f5f1 100644 --- a/src/blenderbim/blenderbim/bim/module/attribute/ui.py +++ b/src/blenderbim/blenderbim/bim/module/attribute/ui.py @@ -59,7 +59,7 @@ class BIM_PT_object_attributes(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_object_metadata" bl_options = {"DEFAULT_CLOSED"} @classmethod @@ -82,7 +82,7 @@ class BIM_PT_material_attributes(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "material" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_object_metadata" bl_options = {"DEFAULT_CLOSED"} @classmethod diff --git a/src/blenderbim/blenderbim/bim/module/bcf/ui.py b/src/blenderbim/blenderbim/bim/module/bcf/ui.py index e71613aad3..1f85e0a2d1 100644 --- a/src/blenderbim/blenderbim/bim/module/bcf/ui.py +++ b/src/blenderbim/blenderbim/bim/module/bcf/ui.py @@ -29,7 +29,7 @@ class BIM_PT_bcf(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_collaboration_and_data_exchange" + bl_parent_id = "BIM_PT_collaboration" def draw(self, context): layout = self.layout diff --git a/src/blenderbim/blenderbim/bim/module/bimtester/ui.py b/src/blenderbim/blenderbim/bim/module/bimtester/ui.py index 46112b7590..9b58f29b12 100644 --- a/src/blenderbim/blenderbim/bim/module/bimtester/ui.py +++ b/src/blenderbim/blenderbim/bim/module/bimtester/ui.py @@ -27,7 +27,7 @@ class BIM_PT_qa(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_quality_control" def draw(self, context): self.layout.use_property_split = True diff --git a/src/blenderbim/blenderbim/bim/module/boundary/ui.py b/src/blenderbim/blenderbim/bim/module/boundary/ui.py index 9a84b86d4f..68a0c5fa32 100644 --- a/src/blenderbim/blenderbim/bim/module/boundary/ui.py +++ b/src/blenderbim/blenderbim/bim/module/boundary/ui.py @@ -31,7 +31,7 @@ class BIM_PT_SceneBoundaries(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_geometry_and_spatial_structure" + bl_parent_id = "BIM_PT_geometry" @classmethod def poll(cls, context): @@ -50,7 +50,7 @@ class BIM_PT_Boundary(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_geometry_and_spatial_structure_object" + bl_parent_id = "BIM_PT_geometry_object" @classmethod def poll(cls, context): @@ -119,7 +119,7 @@ class BIM_PT_SpaceBoundaries(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_geometry_and_spatial_structure_object" + bl_parent_id = "BIM_PT_geometry_object" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/classification/ui.py b/src/blenderbim/blenderbim/bim/module/classification/ui.py index 6f03009bcb..dc395cb33d 100644 --- a/src/blenderbim/blenderbim/bim/module/classification/ui.py +++ b/src/blenderbim/blenderbim/bim/module/classification/ui.py @@ -29,7 +29,7 @@ class BIM_PT_classifications(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_project_and_template_setup" + bl_parent_id = "BIM_PT_project_setup" @classmethod def poll(cls, context): @@ -87,7 +87,7 @@ class BIM_PT_classification_references(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_object_metadata" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/cobie/ui.py b/src/blenderbim/blenderbim/bim/module/cobie/ui.py index 38b9da07fd..075dba6bba 100644 --- a/src/blenderbim/blenderbim/bim/module/cobie/ui.py +++ b/src/blenderbim/blenderbim/bim/module/cobie/ui.py @@ -27,7 +27,7 @@ class BIM_PT_cobie(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_collaboration_and_data_exchange" + bl_parent_id = "BIM_PT_collaboration" def draw(self, context): layout = self.layout diff --git a/src/blenderbim/blenderbim/bim/module/context/ui.py b/src/blenderbim/blenderbim/bim/module/context/ui.py index 80311145fb..685acb1817 100644 --- a/src/blenderbim/blenderbim/bim/module/context/ui.py +++ b/src/blenderbim/blenderbim/bim/module/context/ui.py @@ -29,7 +29,7 @@ class BIM_PT_context(bpy.types.Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_geometry_and_spatial_structure" + bl_parent_id = "BIM_PT_geometry" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/csv/ui.py b/src/blenderbim/blenderbim/bim/module/csv/ui.py index 6182600822..301189cfe9 100644 --- a/src/blenderbim/blenderbim/bim/module/csv/ui.py +++ b/src/blenderbim/blenderbim/bim/module/csv/ui.py @@ -27,7 +27,7 @@ class BIM_PT_ifccsv(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_collaboration_and_data_exchange" + bl_parent_id = "BIM_PT_collaboration" def draw(self, context): layout = self.layout diff --git a/src/blenderbim/blenderbim/bim/module/document/ui.py b/src/blenderbim/blenderbim/bim/module/document/ui.py index 74b38b6a76..cf603fc1af 100644 --- a/src/blenderbim/blenderbim/bim/module/document/ui.py +++ b/src/blenderbim/blenderbim/bim/module/document/ui.py @@ -29,7 +29,7 @@ class BIM_PT_documents(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_collaboration_and_data_exchange" + bl_parent_id = "BIM_PT_collaboration" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/geometry/ui.py b/src/blenderbim/blenderbim/bim/module/geometry/ui.py index f0284e3505..40530a3c75 100644 --- a/src/blenderbim/blenderbim/bim/module/geometry/ui.py +++ b/src/blenderbim/blenderbim/bim/module/geometry/ui.py @@ -29,7 +29,7 @@ class BIM_PT_representations(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_geometry_and_spatial_structure" + bl_parent_id = "BIM_PT_geometry_object" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/georeference/ui.py b/src/blenderbim/blenderbim/bim/module/georeference/ui.py index 44b62602e7..062b229bab 100644 --- a/src/blenderbim/blenderbim/bim/module/georeference/ui.py +++ b/src/blenderbim/blenderbim/bim/module/georeference/ui.py @@ -30,7 +30,7 @@ class BIM_PT_gis(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_geometry_and_spatial_structure" + bl_parent_id = "BIM_PT_geometry" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/gis/ui.py b/src/blenderbim/blenderbim/bim/module/gis/ui.py index 56386bbe37..1ccc930928 100644 --- a/src/blenderbim/blenderbim/bim/module/gis/ui.py +++ b/src/blenderbim/blenderbim/bim/module/gis/ui.py @@ -26,7 +26,7 @@ class BIM_PT_cityjson_converter(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_collaboration_and_data_exchange" + bl_parent_id = "BIM_PT_collaboration" def draw(self, context): layout = self.layout diff --git a/src/blenderbim/blenderbim/bim/module/layer/ui.py b/src/blenderbim/blenderbim/bim/module/layer/ui.py index 7609755b95..05dc1825a1 100644 --- a/src/blenderbim/blenderbim/bim/module/layer/ui.py +++ b/src/blenderbim/blenderbim/bim/module/layer/ui.py @@ -28,7 +28,7 @@ class BIM_PT_layers(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_geometry_and_spatial_structure_object" + bl_parent_id = "BIM_PT_geometry_object" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/library/ui.py b/src/blenderbim/blenderbim/bim/module/library/ui.py index 666c81c4b0..c2fab1728c 100644 --- a/src/blenderbim/blenderbim/bim/module/library/ui.py +++ b/src/blenderbim/blenderbim/bim/module/library/ui.py @@ -29,7 +29,7 @@ class BIM_PT_libraries(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_project_and_template_setup" + bl_parent_id = "BIM_PT_project_setup" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/material/ui.py b/src/blenderbim/blenderbim/bim/module/material/ui.py index 400543ee81..f7f51e2f03 100644 --- a/src/blenderbim/blenderbim/bim/module/material/ui.py +++ b/src/blenderbim/blenderbim/bim/module/material/ui.py @@ -50,7 +50,7 @@ class BIM_PT_object_material(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_object_metadata" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/owner/ui.py b/src/blenderbim/blenderbim/bim/module/owner/ui.py index 90d0d0601e..2d6c9c39de 100644 --- a/src/blenderbim/blenderbim/bim/module/owner/ui.py +++ b/src/blenderbim/blenderbim/bim/module/owner/ui.py @@ -83,7 +83,7 @@ class BIM_PT_people(bpy.types.Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_project_and_template_setup" + bl_parent_id = "BIM_PT_project_setup" @classmethod def poll(cls, context): @@ -140,7 +140,7 @@ class BIM_PT_organisations(bpy.types.Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_project_and_template_setup" + bl_parent_id = "BIM_PT_project_setup" @classmethod def poll(cls, context): @@ -185,7 +185,7 @@ class BIM_PT_owner(bpy.types.Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_project_and_template_setup" + bl_parent_id = "BIM_PT_project_setup" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/profile/ui.py b/src/blenderbim/blenderbim/bim/module/profile/ui.py index f2fc3ee3b6..00081ab41e 100644 --- a/src/blenderbim/blenderbim/bim/module/profile/ui.py +++ b/src/blenderbim/blenderbim/bim/module/profile/ui.py @@ -29,7 +29,7 @@ class BIM_PT_profiles(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_geometry_and_spatial_structure" + bl_parent_id = "BIM_PT_geometry" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/project/ui.py b/src/blenderbim/blenderbim/bim/module/project/ui.py index a87270a99f..7567a4b7cb 100644 --- a/src/blenderbim/blenderbim/bim/module/project/ui.py +++ b/src/blenderbim/blenderbim/bim/module/project/ui.py @@ -28,7 +28,7 @@ class BIM_PT_project(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_project_and_template_setup" + bl_parent_id = "BIM_PT_project_setup" def draw(self, context): if not ProjectData.is_loaded: @@ -176,7 +176,7 @@ class BIM_PT_project_library(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_project_and_template_setup" + bl_parent_id = "BIM_PT_project_setup" def draw(self, context): self.layout.use_property_decorate = False @@ -218,7 +218,7 @@ class BIM_PT_links(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_project_and_template_setup" + bl_parent_id = "BIM_PT_project_setup" def draw(self, context): self.props = context.scene.BIMProjectProperties diff --git a/src/blenderbim/blenderbim/bim/module/pset/ui.py b/src/blenderbim/blenderbim/bim/module/pset/ui.py index c602f1248f..55df0ec104 100644 --- a/src/blenderbim/blenderbim/bim/module/pset/ui.py +++ b/src/blenderbim/blenderbim/bim/module/pset/ui.py @@ -119,7 +119,7 @@ class BIM_PT_object_psets(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_object_metadata" @classmethod def poll(cls, context): @@ -158,7 +158,7 @@ class BIM_PT_object_qtos(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_object_metadata" @classmethod def poll(cls, context): @@ -192,7 +192,7 @@ class BIM_PT_material_psets(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "material" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_object_metadata" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/pset_template/ui.py b/src/blenderbim/blenderbim/bim/module/pset_template/ui.py index 28df5004c1..91f90f82d8 100644 --- a/src/blenderbim/blenderbim/bim/module/pset_template/ui.py +++ b/src/blenderbim/blenderbim/bim/module/pset_template/ui.py @@ -32,7 +32,7 @@ class BIM_PT_pset_template(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_project_and_template_setup" + bl_parent_id = "BIM_PT_project_setup" def draw(self, context): layout = self.layout diff --git a/src/blenderbim/blenderbim/bim/module/root/ui.py b/src/blenderbim/blenderbim/bim/module/root/ui.py index 9eddd935eb..10daf84ae5 100644 --- a/src/blenderbim/blenderbim/bim/module/root/ui.py +++ b/src/blenderbim/blenderbim/bim/module/root/ui.py @@ -29,7 +29,7 @@ class BIM_PT_class(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_object_metadata" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/spatial/ui.py b/src/blenderbim/blenderbim/bim/module/spatial/ui.py index 299c7fc769..a944b45a3b 100644 --- a/src/blenderbim/blenderbim/bim/module/spatial/ui.py +++ b/src/blenderbim/blenderbim/bim/module/spatial/ui.py @@ -27,7 +27,7 @@ class BIM_PT_spatial(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_geometry_and_spatial_structure_object" + bl_parent_id = "BIM_PT_geometry_object" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/system/ui.py b/src/blenderbim/blenderbim/bim/module/system/ui.py index 57f848b230..5c72194381 100644 --- a/src/blenderbim/blenderbim/bim/module/system/ui.py +++ b/src/blenderbim/blenderbim/bim/module/system/ui.py @@ -28,7 +28,7 @@ class BIM_PT_systems(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_utilities" + bl_parent_id = "BIM_PT_services" @classmethod def poll(cls, context): @@ -75,7 +75,7 @@ class BIM_PT_object_systems(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_utilities_object" + bl_parent_id = "BIM_PT_services_object" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/type/ui.py b/src/blenderbim/blenderbim/bim/module/type/ui.py index 678f1a55ed..95256e99c7 100644 --- a/src/blenderbim/blenderbim/bim/module/type/ui.py +++ b/src/blenderbim/blenderbim/bim/module/type/ui.py @@ -29,7 +29,7 @@ class BIM_PT_type(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" - bl_parent_id = "BIM_PT_object_attributes_properties_and_relationships" + bl_parent_id = "BIM_PT_object_metadata" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/unit/ui.py b/src/blenderbim/blenderbim/bim/module/unit/ui.py index 4356ba440f..75a4b5175d 100644 --- a/src/blenderbim/blenderbim/bim/module/unit/ui.py +++ b/src/blenderbim/blenderbim/bim/module/unit/ui.py @@ -29,7 +29,7 @@ class BIM_PT_units(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_parent_id = "BIM_PT_project_and_template_setup" + bl_parent_id = "BIM_PT_project_setup" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/module/void/ui.py b/src/blenderbim/blenderbim/bim/module/void/ui.py index 72568fef23..a1bac98af7 100644 --- a/src/blenderbim/blenderbim/bim/module/void/ui.py +++ b/src/blenderbim/blenderbim/bim/module/void/ui.py @@ -29,6 +29,7 @@ class BIM_PT_voids(Panel): bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" + bl_parent_id = "BIM_PT_geometry_object" @classmethod def poll(cls, context): diff --git a/src/blenderbim/blenderbim/bim/ui.py b/src/blenderbim/blenderbim/bim/ui.py index a3f2992006..3600e3567f 100644 --- a/src/blenderbim/blenderbim/bim/ui.py +++ b/src/blenderbim/blenderbim/bim/ui.py @@ -23,6 +23,7 @@ from . import ifc from bpy.types import Panel from bpy.props import StringProperty, IntProperty, BoolProperty from blenderbim.bim.helper import IFCHeaderSpecs +import blenderbim.tool as tool class IFCFileSelector: @@ -157,12 +158,11 @@ def ifc_units(self, context): # Scene Panel Groups --> -class BIM_PT_project_and_template_setup(Panel): - bl_label = "IFC Project and Template Setup" +class BIM_PT_project_setup(Panel): + bl_label = "IFC Project Setup" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" - bl_options = {"DEFAULT_CLOSED"} def draw(self, context): pass @@ -175,12 +175,16 @@ class BIM_PT_utilities(Panel): bl_context = "scene" bl_options = {"DEFAULT_CLOSED"} + @classmethod + def poll(cls, context): + return tool.Ifc.get() + def draw(self, context): pass -class BIM_PT_collaboration_and_data_exchange(Panel): - bl_label = "IFC Collaboration and Data Exchange" +class BIM_PT_collaboration(Panel): + bl_label = "IFC Collaboration" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" @@ -190,13 +194,17 @@ class BIM_PT_collaboration_and_data_exchange(Panel): pass -class BIM_PT_geometry_and_spatial_structure(Panel): - bl_label = "IFC Geometry and Spatial Structure" +class BIM_PT_geometry(Panel): + bl_label = "IFC Geometry" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "scene" bl_options = {"DEFAULT_CLOSED"} + @classmethod + def poll(cls, context): + return tool.Ifc.get() + def draw(self, context): pass @@ -208,6 +216,10 @@ class BIM_PT_4D5D(Panel): bl_context = "scene" bl_options = {"DEFAULT_CLOSED"} + @classmethod + def poll(cls, context): + return tool.Ifc.get() + def draw(self, context): pass @@ -219,6 +231,25 @@ class BIM_PT_structural(Panel): bl_context = "scene" bl_options = {"DEFAULT_CLOSED"} + @classmethod + def poll(cls, context): + return tool.Ifc.get() + + def draw(self, context): + pass + + +class BIM_PT_services(Panel): + bl_label = "IFC Services" + bl_space_type = "PROPERTIES" + bl_region_type = "WINDOW" + bl_context = "scene" + bl_options = {"DEFAULT_CLOSED"} + + @classmethod + def poll(cls, context): + return tool.Ifc.get() + def draw(self, context): pass @@ -230,6 +261,10 @@ class BIM_PT_misc(Panel): bl_context = "scene" bl_options = {"DEFAULT_CLOSED"} + @classmethod + def poll(cls, context): + return tool.Ifc.get() + def draw(self, context): pass @@ -246,24 +281,46 @@ class BIM_PT_quality_control(Panel): # Object Panel Groups --> -class BIM_PT_geometry_and_spatial_structure_object(Panel): - bl_label = "IFC Geometry and Spatial Structure" +class BIM_PT_object_metadata(Panel): + bl_label = "IFC Object Metadata" + bl_space_type = "PROPERTIES" + bl_region_type = "WINDOW" + bl_context = "object" + + @classmethod + def poll(cls, context): + return tool.Ifc.get() + + def draw(self, context): + pass + + +class BIM_PT_geometry_object(Panel): + bl_label = "IFC Geometry" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" bl_options = {"DEFAULT_CLOSED"} + @classmethod + def poll(cls, context): + return tool.Ifc.get() + def draw(self, context): pass -class BIM_PT_object_attributes_properties_and_relationships(Panel): - bl_label = "IFC Object Attributes, Properties and Relationships" +class BIM_PT_services_object(Panel): + bl_label = "IFC Services" bl_space_type = "PROPERTIES" bl_region_type = "WINDOW" bl_context = "object" bl_options = {"DEFAULT_CLOSED"} + @classmethod + def poll(cls, context): + return tool.Ifc.get() + def draw(self, context): pass @@ -275,6 +332,10 @@ class BIM_PT_utilities_object(Panel): bl_context = "object" bl_options = {"DEFAULT_CLOSED"} + @classmethod + def poll(cls, context): + return tool.Ifc.get() + def draw(self, context): pass @@ -286,5 +347,9 @@ class BIM_PT_misc_object(Panel): bl_context = "object" bl_options = {"DEFAULT_CLOSED"} + @classmethod + def poll(cls, context): + return tool.Ifc.get() + def draw(self, context): pass