From 03b2afbb31530518220cca9f6935b8766eaaea2d Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 7 Jun 2024 20:08:23 +1000 Subject: [PATCH] Fix IfcCSV docs to use new selector syntax. --- src/ifcopenshell-python/docs/ifccsv.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/docs/ifccsv.rst b/src/ifcopenshell-python/docs/ifccsv.rst index 3c9f93b766..34b114258c 100644 --- a/src/ifcopenshell-python/docs/ifccsv.rst +++ b/src/ifcopenshell-python/docs/ifccsv.rst @@ -115,7 +115,7 @@ Here is a minimal example of how to use IfcCSV as a library: model = ifcopenshell.open("/path/to/model.ifc") # Using the selector is optional. You may specify elements as a list manually if you prefer. # e.g. elements = model.by_type("IfcElement") - elements = ifcopenshell.util.selector.Selector.parse(model, ".IfcElement") + elements = ifcopenshell.util.selector.filter_elements(model, "IfcElement") attributes = ["Name", "Description"] # Export our model's elements and their attributes to a CSV.