From 4385bf0bccaa8cda92e7c1e6f30e10ffae8c4155 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 21 Jun 2024 17:23:45 +0500 Subject: [PATCH] create_shape - note about IfcTypeProducts --- src/ifcopenshell-python/ifcopenshell/geom/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/geom/main.py b/src/ifcopenshell-python/ifcopenshell/geom/main.py index 855e66524f..231b30b9ba 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/main.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/main.py @@ -326,6 +326,9 @@ def create_shape(settings: settings, inst: entity_instance, repr: Optional[entit Note that in Python, you must store a reference to the element returned by this function to prevent garbage collection when you access its children. See #1124. + To create a representation for IfcTypeProduct you need to provide use `create_shape(settings, representation)` + (representation is provided as `inst` argument). + example: settings = ifcopenshell.geom.settings()