-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# How to get a list of arch objects by role | ||
|
||
Add the following statement to the Report | ||
|
||
```sql | ||
Select IfcRole, Count(*) | ||
From document | ||
Group by IfcRole; | ||
``` | ||
|
||
And you will get a Result like this | ||
|
||
![Result](./get_number_of_objects_by_role_result.png) | ||
|
||
There is a empty entry in the list. This is because some objects like Sketches or Groups don't have a IfcRole attribute. We can filter them out easily by changing the query to this | ||
|
||
```sql | ||
Select IfcRole, Count(*) | ||
From document | ||
Where IfcRole IS NOT NULL | ||
Group by IfcRole; | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters