Skip to content

Commit

Permalink
Add How to section to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
furti committed Jan 19, 2019
1 parent bba4abe commit f42915b
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Documentation/Howto/Arch/get_number_of_objects_by_role.md
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.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,20 @@ more...
comming soon...
</details>

## How To...

<details>
<summary>
Check this section for a list of common sql queries.

more...
</summary>

### Architecture
[... get a list of arch objects by role](./Documentation/Howto/Arch/get_number_of_objects_by_role.md)

</details>

## SQL Reference

<details>
Expand Down

0 comments on commit f42915b

Please sign in to comment.