mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 02:07:36 +00:00
Reorder representation_template to improve clarity and organization as per user feedback
This commit is contained in:
@@ -134,44 +134,8 @@ class IfcClassData:
|
|||||||
return [("FACE", "Face", "A planar face surface")]
|
return [("FACE", "Face", "A planar face surface")]
|
||||||
templates = [
|
templates = [
|
||||||
("EMPTY", "No Geometry", "Start with an empty object"),
|
("EMPTY", "No Geometry", "Start with an empty object"),
|
||||||
None,
|
|
||||||
(
|
|
||||||
"OBJ",
|
|
||||||
"Tessellation From Object",
|
|
||||||
"Use an object as a template to create a new tessellation",
|
|
||||||
),
|
|
||||||
(
|
|
||||||
"MESH",
|
|
||||||
"Custom Tessellation",
|
|
||||||
"Create a basic tessellated or faceted cube",
|
|
||||||
),
|
|
||||||
(
|
|
||||||
"EXTRUSION",
|
|
||||||
"Custom Extruded Solid",
|
|
||||||
"An extrusion from an arbitrary profile",
|
|
||||||
),
|
|
||||||
]
|
]
|
||||||
if ifc_class.endswith("Type") or ifc_class.endswith("Style"):
|
|
||||||
templates.extend(
|
|
||||||
[
|
|
||||||
None,
|
|
||||||
(
|
|
||||||
"LAYERSET_AXIS2",
|
|
||||||
"Vertical Layers",
|
|
||||||
"For objects similar to walls, will automatically add IfcMaterialLayerSet",
|
|
||||||
),
|
|
||||||
(
|
|
||||||
"LAYERSET_AXIS3",
|
|
||||||
"Horizontal Layers",
|
|
||||||
"For objects similar to slabs, will automatically add IfcMaterialLayerSet",
|
|
||||||
),
|
|
||||||
(
|
|
||||||
"PROFILESET",
|
|
||||||
"Extruded Profile",
|
|
||||||
"Create profile type object, automatically defines IfcMaterialProfileSet with the first profile from library",
|
|
||||||
),
|
|
||||||
]
|
|
||||||
)
|
|
||||||
if ifc_class in ("IfcWindowType", "IfcWindowStyle", "IfcWindow"):
|
if ifc_class in ("IfcWindowType", "IfcWindowStyle", "IfcWindow"):
|
||||||
templates.extend([None, ("WINDOW", "Window", "Parametric window")])
|
templates.extend([None, ("WINDOW", "Window", "Parametric window")])
|
||||||
elif ifc_class in ("IfcDoorType", "IfcDoorStyle", "IfcDoor"):
|
elif ifc_class in ("IfcDoorType", "IfcDoorStyle", "IfcDoor"):
|
||||||
@@ -206,6 +170,11 @@ class IfcClassData:
|
|||||||
"Circular Hollow Distribution Segment",
|
"Circular Hollow Distribution Segment",
|
||||||
"Works similarly to Profile, has distribution ports",
|
"Works similarly to Profile, has distribution ports",
|
||||||
),
|
),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
if (ifc_class and "IfcCableCarrierSegment" in ifc_class):
|
||||||
|
templates.extend(
|
||||||
|
(
|
||||||
(
|
(
|
||||||
"FLOW_SEGMENT_U_SHAPE",
|
"FLOW_SEGMENT_U_SHAPE",
|
||||||
"U-Shape Distribution Segment",
|
"U-Shape Distribution Segment",
|
||||||
@@ -214,6 +183,47 @@ class IfcClassData:
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if ifc_class.endswith("Type") or ifc_class.endswith("Style"):
|
||||||
|
templates.extend(
|
||||||
|
[
|
||||||
|
None,
|
||||||
|
(
|
||||||
|
"LAYERSET_AXIS2",
|
||||||
|
"Vertical Layers",
|
||||||
|
"For objects similar to walls, will automatically add IfcMaterialLayerSet",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"LAYERSET_AXIS3",
|
||||||
|
"Horizontal Layers",
|
||||||
|
"For objects similar to slabs, will automatically add IfcMaterialLayerSet",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"PROFILESET",
|
||||||
|
"Extruded Profile",
|
||||||
|
"Create profile type object, automatically defines IfcMaterialProfileSet with the first profile from library",
|
||||||
|
),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
templates.extend(
|
||||||
|
[
|
||||||
|
None,
|
||||||
|
(
|
||||||
|
"OBJ",
|
||||||
|
"Tessellation From Object",
|
||||||
|
"Use an object as a template to create a new tessellation",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"MESH",
|
||||||
|
"Custom Tessellation",
|
||||||
|
"Create a basic tessellated or faceted cube",
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"EXTRUSION",
|
||||||
|
"Custom Extruded Solid",
|
||||||
|
"An extrusion from an arbitrary profile",
|
||||||
|
),
|
||||||
|
]
|
||||||
|
)
|
||||||
return templates
|
return templates
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user