mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
This commit is contained in:
@@ -786,17 +786,21 @@ class Model(bonsai.core.tool.Model):
|
|||||||
elif material.is_a("IfcMaterialLayerSet"):
|
elif material.is_a("IfcMaterialLayerSet"):
|
||||||
axis = ifcopenshell.util.element.get_pset(element, "EPset_Parametric", "LayerSetDirection")
|
axis = ifcopenshell.util.element.get_pset(element, "EPset_Parametric", "LayerSetDirection")
|
||||||
if axis is None:
|
if axis is None:
|
||||||
if element.is_a() in [
|
if element.is_a() in (
|
||||||
"IfcSlabType",
|
"IfcSlabType",
|
||||||
"IfcRoofType",
|
"IfcRoofType",
|
||||||
"IfcRampType",
|
"IfcRampType",
|
||||||
"IfcPlateType",
|
"IfcPlateType",
|
||||||
"IfcCovering",
|
"IfcSlab",
|
||||||
"IfcFurniture",
|
"IfcRoof",
|
||||||
]:
|
"IfcRamp",
|
||||||
|
"IfcPlate",
|
||||||
|
):
|
||||||
axis = "AXIS3"
|
axis = "AXIS3"
|
||||||
else:
|
elif element.is_a() in ("IfcWallType", "IfcWall"):
|
||||||
axis = "AXIS2"
|
axis = "AXIS2"
|
||||||
|
else:
|
||||||
|
return
|
||||||
return f"LAYER{axis[-1]}"
|
return f"LAYER{axis[-1]}"
|
||||||
elif material.is_a("IfcMaterialProfileSetUsage"):
|
elif material.is_a("IfcMaterialProfileSetUsage"):
|
||||||
# TODO: remove after we support editing profile usages with IfcRevolvedAreaSolid.
|
# TODO: remove after we support editing profile usages with IfcRevolvedAreaSolid.
|
||||||
|
|||||||
Reference in New Issue
Block a user