mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
You can now edit parameters of parametric profile definitions in geometry.
This commit is contained in:
@@ -410,8 +410,7 @@ class GetRepresentationIfcParameters(bpy.types.Operator):
|
|||||||
props = obj.data.BIMMeshProperties
|
props = obj.data.BIMMeshProperties
|
||||||
elements = IfcStore.get_file().traverse(IfcStore.get_file().by_id(props.ifc_definition_id))
|
elements = IfcStore.get_file().traverse(IfcStore.get_file().by_id(props.ifc_definition_id))
|
||||||
for element in elements:
|
for element in elements:
|
||||||
if not element.is_a("IfcRepresentationItem"):
|
if element.is_a("IfcRepresentationItem") or element.is_a("IfcParameterizedProfileDef"):
|
||||||
continue
|
|
||||||
for i in range(0, len(element)):
|
for i in range(0, len(element)):
|
||||||
if element.attribute_type(i) == "DOUBLE":
|
if element.attribute_type(i) == "DOUBLE":
|
||||||
new = props.ifc_parameters.add()
|
new = props.ifc_parameters.add()
|
||||||
|
|||||||
Reference in New Issue
Block a user