diff --git a/src/ifcopenshell-python/docs/ifcopenshell-python/geometry_processing.rst b/src/ifcopenshell-python/docs/ifcopenshell-python/geometry_processing.rst index b9ff3849fe..20ee185476 100644 --- a/src/ifcopenshell-python/docs/ifcopenshell-python/geometry_processing.rst +++ b/src/ifcopenshell-python/docs/ifcopenshell-python/geometry_processing.rst @@ -76,7 +76,7 @@ related information in ``shape.geometry``: # Each style is named after the entity class if a default # material is applied. Otherwise, it is named "surface-style-{SurfaceStyle.name}" # All non-alphanumeric characters are replaced with a "-". - print(style.original_name) + print(style.original_name()) # A more human readable name print(style.name) diff --git a/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py b/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py index 6f5fa48921..722c30aff9 100644 --- a/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py +++ b/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py @@ -38,10 +38,10 @@ class Patcher: .. code:: python # Convert to millimeters - ifcpatch.execute({"input": model, "recipe": "ExtractElements", "arguments": ["MILLIMETERS"]}) + ifcpatch.execute({"input": model, "recipe": "ConvertLengthUnit", "arguments": ["MILLIMETERS"]}) # Convert to feet - ifcpatch.execute({"input": model, "recipe": "ExtractElements", "arguments": ["FEET"]}) + ifcpatch.execute({"input": model, "recipe": "ConvertLengthUnit", "arguments": ["FEET"]}) """ self.src = src self.file = file diff --git a/src/ifcpatch/ifcpatch/recipes/ConvertPropertiesToQuantities.py b/src/ifcpatch/ifcpatch/recipes/ConvertPropertiesToQuantities.py index cc0939e67d..df13bf3bd2 100644 --- a/src/ifcpatch/ifcpatch/recipes/ConvertPropertiesToQuantities.py +++ b/src/ifcpatch/ifcpatch/recipes/ConvertPropertiesToQuantities.py @@ -55,7 +55,7 @@ class Patcher: # Any property named "Area" is converted to a quantity named # "NetSideArea", if that standardised quantity exists. - ifcpatch.execute({"input": model, "recipe": "ExtractElements", "arguments": ["Area", "NetSideArea"]}) + ifcpatch.execute({"input": model, "recipe": "ConvertPropertiesToQuantities", "arguments": ["Area", "NetSideArea"]}) """ self.src = src self.file = file