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