Skip to content

Commit

Permalink
Update 08. Explore Pull Data From ACC BIM360 API.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Feb 27, 2024
1 parent 1e916d1 commit fbf75ed
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions docs/Tutorials/08. Explore Pull Data From ACC BIM360 API.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@
"## Auth"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Please check tutorial and code in the following notebook:\n",
"\n",
"- [01. Setup And Authentication](./01.%20Setup%20And%20Authentication.ipynb)"
]
},
{
"cell_type": "code",
"execution_count": 3,
Expand All @@ -85,6 +94,27 @@
"var token = Authentication.Get2LeggedToken().Result;"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
},
"polyglot_notebook": {
"kernelName": "csharp"
},
"vscode": {
"languageId": "polyglot-notebook"
}
},
"outputs": [],
"source": [
"Scope[] scope = new Scope[]\n",
" { Scope.DataRead, Scope.DataWrite, Scope.DataCreate, Scope.BucketRead, Scope.BucketCreate, Scope.CodeAll };\n",
"string token3Leg = Authentication.Refresh3LeggedToken(scope).Result;"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -149,9 +179,7 @@
"using APSToolkit.BIM360;\n",
"using Autodesk.Forge;\n",
"BIM360 bim360 = new BIM360();\n",
"Scope[] scope = new Scope[]\n",
" { Scope.DataRead, Scope.DataWrite, Scope.DataCreate, Scope.BucketRead, Scope.BucketCreate, Scope.CodeAll };\n",
"string token3Leg = Authentication.Refresh3LeggedToken(scope).Result;\n",
"\n",
"BIMData[] bimDatas = bim360.GetAllDataByVersionId(token3Leg,projectId,versionId);\n",
"BIMData bimData = bimDatas.FirstOrDefault(x => x.externalId == \"5bb069ca-e4fe-4e63-be31-f8ac44e80d30-000471ee\");"
]
Expand Down

0 comments on commit fbf75ed

Please sign in to comment.