mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
attribute.edit_attributes - document behaviour for PredefinedType
This commit is contained in:
@@ -29,6 +29,13 @@ def edit_attributes(file: ifcopenshell.file, product: ifcopenshell.entity_instan
|
|||||||
to also ensure that ownership history is updated. This function provides
|
to also ensure that ownership history is updated. This function provides
|
||||||
that convenience.
|
that convenience.
|
||||||
|
|
||||||
|
The method will maintain consistency for PredefinedType attribute
|
||||||
|
based on whether ElementType/ObjectType and whether occurrence is typed:
|
||||||
|
|
||||||
|
- PredefinedType and ObjectType to be `None` if occurrence is typed
|
||||||
|
- PredefinedType to be "NOTDEFINED" if ElementType/ObjectType is None
|
||||||
|
- PredefinedType to be "USERDEFINED" if ElementType/ObjectType is not None
|
||||||
|
|
||||||
:param product: The product you want to edit. This may be any rooted IFC
|
:param product: The product you want to edit. This may be any rooted IFC
|
||||||
entity.
|
entity.
|
||||||
:type product: ifcopenshell.entity_instance
|
:type product: ifcopenshell.entity_instance
|
||||||
|
|||||||
Reference in New Issue
Block a user