mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
Fix IfcCSV docs to use new selector syntax.
This commit is contained in:
@@ -115,7 +115,7 @@ Here is a minimal example of how to use IfcCSV as a library:
|
|||||||
model = ifcopenshell.open("/path/to/model.ifc")
|
model = ifcopenshell.open("/path/to/model.ifc")
|
||||||
# Using the selector is optional. You may specify elements as a list manually if you prefer.
|
# Using the selector is optional. You may specify elements as a list manually if you prefer.
|
||||||
# e.g. elements = model.by_type("IfcElement")
|
# 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"]
|
attributes = ["Name", "Description"]
|
||||||
|
|
||||||
# Export our model's elements and their attributes to a CSV.
|
# Export our model's elements and their attributes to a CSV.
|
||||||
|
|||||||
Reference in New Issue
Block a user