From fcf07bebfbbe3533dfb3dd1377d92fca4c344b38 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Mon, 27 May 2024 17:30:17 +1000 Subject: [PATCH] Minor doc fix for IfcPatch ConvertLengthUnit Helps indicate how to get the patched model - it's not an inplace patch --- src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py b/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py index 4445f2ddc0..dce1aaa60e 100644 --- a/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py +++ b/src/ifcpatch/ifcpatch/recipes/ConvertLengthUnit.py @@ -46,10 +46,10 @@ class Patcher: .. code:: python # Convert to millimeters - ifcpatch.execute({"input": "input.ifc", "file": model, "recipe": "ConvertLengthUnit", "arguments": ["MILLIMETER"]}) + model = ifcpatch.execute({"input": "input.ifc", "file": model, "recipe": "ConvertLengthUnit", "arguments": ["MILLIMETER"]}) # Convert to feet - ifcpatch.execute({"input": "input.ifc", "file": model, "recipe": "ConvertLengthUnit", "arguments": ["FOOT"]}) + model = ifcpatch.execute({"input": "input.ifc", "file": model, "recipe": "ConvertLengthUnit", "arguments": ["FOOT"]}) """ self.src = src self.file = file