Minor fixes to docs

This commit is contained in:
Jesusbill
2023-01-10 01:06:49 +01:00
parent da84cc5925
commit 4845d191f4
3 changed files with 4 additions and 4 deletions
@@ -76,7 +76,7 @@ related information in ``shape.geometry``:
# Each style is named after the entity class if a default # Each style is named after the entity class if a default
# material is applied. Otherwise, it is named "surface-style-{SurfaceStyle.name}" # material is applied. Otherwise, it is named "surface-style-{SurfaceStyle.name}"
# All non-alphanumeric characters are replaced with a "-". # All non-alphanumeric characters are replaced with a "-".
print(style.original_name) print(style.original_name())
# A more human readable name # A more human readable name
print(style.name) print(style.name)
@@ -38,10 +38,10 @@ class Patcher:
.. code:: python .. code:: python
# Convert to millimeters # Convert to millimeters
ifcpatch.execute({"input": model, "recipe": "ExtractElements", "arguments": ["MILLIMETERS"]}) ifcpatch.execute({"input": model, "recipe": "ConvertLengthUnit", "arguments": ["MILLIMETERS"]})
# Convert to feet # Convert to feet
ifcpatch.execute({"input": model, "recipe": "ExtractElements", "arguments": ["FEET"]}) ifcpatch.execute({"input": model, "recipe": "ConvertLengthUnit", "arguments": ["FEET"]})
""" """
self.src = src self.src = src
self.file = file self.file = file
@@ -55,7 +55,7 @@ class Patcher:
# Any property named "Area" is converted to a quantity named # Any property named "Area" is converted to a quantity named
# "NetSideArea", if that standardised quantity exists. # "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.src = src
self.file = file self.file = file