Skip to content

Commit a8b9332

Browse files
committed
chore: fix finder example
1 parent 3562c20 commit a8b9332

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/ifc/IfcFinder/example.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
### 🏢 Loading IFC files
33
---
44
5-
IFC is complex, and sometimes we want to look for items using complex filters. For instance, imagine we want to target all items in a file that have a property called "FireProtection". This is due to the indirection present in most IFC files. Luckily for you, we have a component to easily perform complex queries on any IFC: the IfcFinder. In this tutorial, you'll learn how to use it.
5+
IFC is complex, and sometimes we want to look for items using complex filters. For instance, imagine we want to target all items in a file that have a property called FireProtection. This is due to the indirection present in most IFC files. Luckily for you, we have a component to easily perform complex queries on any IFC: the IfcFinder. In this tutorial, you'll learn how to use it.
66
77
:::tip What does the finder do?
88
9-
The finder is a powerful text scanner that can make complex queries in one or multiple IFC files. You can use regular expressions, operators like ">", "<", combine multiple filters, etc.
9+
The finder is a powerful text scanner that can make complex queries in one or multiple IFC files. You can use regular expressions, operators like > <, combine multiple filters, etc.
1010
1111
:::
1212
@@ -94,7 +94,7 @@ indexer.setRelationMap(model, relations);
9494
### 🔎 Setting up the finder
9595
---
9696
97-
Now, let's get the finder component and create a new queryGroup. A query group is a set of "questions" we can apply to one or many models.
97+
Now, let's get the finder component and create a new queryGroup. A query group is a set of questions we can apply to one or many models.
9898
*/
9999

100100
const finder = components.get(OBC.IfcFinder);
@@ -133,7 +133,7 @@ const categoryRule: OBC.IfcCategoryRule = {
133133
basicQuery.rules.push(categoryRule);
134134

135135
/* MD
136-
Awesome! Now, our library has better ways to filter by category, so what's the point of the finder? Well, let's make something a bit more complex. Imagine we want to look for any object that has any property (in a pset) with the word "yeso" (plaster in spanish). We can do this easily with the finder using another type of query: a property query.
136+
Awesome! Now, our library has better ways to filter by category, so what's the point of the finder? Well, let's make something a bit more complex. Imagine we want to look for any object that has any property (in a pset) with the word yeso (plaster in spanish). We can do this easily with the finder using another type of query: a property query.
137137
*/
138138

139139
const propertyRule: OBC.IfcPropertyRule = {

0 commit comments

Comments
 (0)