Skip to content

Commit

Permalink
add sample
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Feb 26, 2024
1 parent bed070c commit 868becb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ APS_REFRESH_TOKEN = <your refresh token>

## Tutorials

All Tutorials are available under Jupyter Notebook at [Turorials](./docs/Turorials)
All Tutorials are available under Jupyter Notebook at [Tutorials](./docs/Tutorials)

- [00.Explore Revit Data With APSToolkit](https://github.com/chuongmep/aps-toolkit/blob/dev/docs/Turorials/00.Explore%20Revit%20Data%20With%20APSToolkit.ipynb)
- [00.Explore Revit Data With APSToolkit](https://github.com/chuongmep/aps-toolkit/blob/dev/docs/Tutorials/00.Explore%20Revit%20Data%20With%20APSToolkit.ipynb)


**WIP** : Working in progress, please collaborate with me to complete this.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,33 @@
"var familiesTypes = RevitPropDbReader.GetAllFamilyTypes();\n",
"display(familiesTypes)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## How to get all data by catgories and parameters ?"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
},
"polyglot_notebook": {
"kernelName": "csharp"
}
},
"outputs": [],
"source": [
"categories = RevitPropDbReader.GetAllCategories();\n",
"string category = \"Rooms\";\n",
"var parameterNames = new string[]{\"Name\",\"Number\",\"Area\",\"Volume\",\"Workset\",\"Level\",\"Comments\"};\n",
"DataTable dataTable = RevitPropDbReader.GetDataByCategoryAndParameters(category,parameterNames.ToList());\n",
"dataTable.ExportToCsv(\"result.csv\");"
]
}
],
"metadata": {
Expand Down

0 comments on commit 868becb

Please sign in to comment.