From a752abf0a563ee96ef6437f5cf56d2673aeb831c Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 12 Apr 2024 10:03:51 +1000 Subject: [PATCH] See #4541. Add documentation examples on how to use include filters in IfcConvert. --- src/ifcopenshell-python/docs/ifcconvert/usage.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ifcopenshell-python/docs/ifcconvert/usage.rst b/src/ifcopenshell-python/docs/ifcconvert/usage.rst index df77cc18c1..56ce4abce4 100644 --- a/src/ifcopenshell-python/docs/ifcconvert/usage.rst +++ b/src/ifcopenshell-python/docs/ifcconvert/usage.rst @@ -40,6 +40,17 @@ If your IFC uses large map coordinates and your desired format cannot handle it: # Or you can specify a manual offset in X;Y;Z format $ IfcConvert --model-offset "10000;10000;0" /path/to/input.ifc /path/to/output.glb +IfcConvert can be used to convert only specific elements. + +:: + + # Convert only walls and slabs + $ IfcConvert --include entities IfcWall IfcSlab /path/to/input.ifc /path/to/output.glb + # Convert only these two particular elements filtered by GlobalId + $ IfcConvert --include attribute GlobalId 1yETHMphv6LwABqR4Pbs5g attribute GlobalId 1yETHMphv6LwABqR0Pbs5g /path/to/input.ifc /path/to/output.glb + # Convert all objects on level 1. Note how "+" is used. + $ IfcConvert --include+=attribute Name "Level 1" /path/to/input.ifc /path/to/output.glb + IfcConvert can also be used to generate SVG floorplans: ::