|
2 | 2 | ### 🏢 Loading IFC files
|
3 | 3 | ---
|
4 | 4 |
|
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. |
6 | 6 |
|
7 | 7 | :::tip What does the finder do?
|
8 | 8 |
|
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. |
10 | 10 |
|
11 | 11 | :::
|
12 | 12 |
|
@@ -94,7 +94,7 @@ indexer.setRelationMap(model, relations);
|
94 | 94 | ### 🔎 Setting up the finder
|
95 | 95 | ---
|
96 | 96 |
|
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. |
98 | 98 | */
|
99 | 99 |
|
100 | 100 | const finder = components.get(OBC.IfcFinder);
|
@@ -133,7 +133,7 @@ const categoryRule: OBC.IfcCategoryRule = {
|
133 | 133 | basicQuery.rules.push(categoryRule);
|
134 | 134 |
|
135 | 135 | /* 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. |
137 | 137 | */
|
138 | 138 |
|
139 | 139 | const propertyRule: OBC.IfcPropertyRule = {
|
|
0 commit comments