mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 19:07:57 +00:00
IfcZone : Allow basic selection/deletion/creation
This commit is contained in:
@@ -50,7 +50,7 @@ class SystemData:
|
||||
return [
|
||||
(c, c, get_entity_doc(version, c).get("description", ""))
|
||||
for c in sorted([d.name() for d in declarations])
|
||||
if c not in ("IfcZone", "IfcStructuralAnalysisModel")
|
||||
if c not in ("IfcStructuralAnalysisModel")
|
||||
]
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -114,6 +114,7 @@ class BIM_PT_object_systems(Panel):
|
||||
"IfcDistributionSystem": "NETWORK_DRIVE",
|
||||
"IfcDistributionCircuit": "DRIVER",
|
||||
"IfcBuildingSystem": "MOD_BUILD",
|
||||
"IfcZone": "CUBE",
|
||||
}
|
||||
for system in ObjectSystemData.data["systems"]:
|
||||
row = self.layout.row(align=True)
|
||||
@@ -196,6 +197,7 @@ class BIM_UL_systems(UIList):
|
||||
"IfcDistributionSystem": "NETWORK_DRIVE",
|
||||
"IfcDistributionCircuit": "DRIVER",
|
||||
"IfcBuildingSystem": "MOD_BUILD",
|
||||
"IfcZone": "CUBE",
|
||||
}
|
||||
if item:
|
||||
row = layout.row(align=True)
|
||||
@@ -227,6 +229,7 @@ class BIM_UL_object_systems(UIList):
|
||||
"IfcDistributionSystem": "NETWORK_DRIVE",
|
||||
"IfcDistributionCircuit": "DRIVER",
|
||||
"IfcBuildingSystem": "MOD_BUILD",
|
||||
"IfcZone": "CUBE",
|
||||
}
|
||||
if item:
|
||||
row = layout.row(align=True)
|
||||
|
||||
@@ -75,7 +75,7 @@ class System(blenderbim.core.tool.System):
|
||||
props = bpy.context.scene.BIMSystemProperties
|
||||
props.systems.clear()
|
||||
for system in tool.Ifc.get().by_type("IfcSystem"):
|
||||
if system.is_a() in ["IfcZone", "IfcStructuralAnalysisModel"]:
|
||||
if system.is_a() in ["IfcStructuralAnalysisModel"]:
|
||||
continue
|
||||
new = props.systems.add()
|
||||
new.ifc_definition_id = system.id()
|
||||
|
||||
Reference in New Issue
Block a user