Skip to content

Commit

Permalink
Update 02. Explore Hubs - Projects - Items - URN.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Mar 19, 2024
1 parent 8227aac commit 386b5aa
Showing 1 changed file with 10 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,25 +177,14 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:10:27.016468Z",
"start_time": "2024-03-02T14:10:25.835994Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"'b.b0be7aa3-70b9-4bd1-96a2-41029ae438ce'"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"projects = bim360.get_projects(hubs_id)\n",
"projects_id = projects[\"data\"][0][\"id\"]\n",
Expand Down Expand Up @@ -227,25 +216,14 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:10:28.121907Z",
"start_time": "2024-03-02T14:10:27.018657Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"'urn:adsk.wipprod:fs.folder:co.z6qm45EyQfykBUrk1NuT7A'"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"topfolders = bim360.get_top_folders(hubs_id, projects_id)\n",
"topfolders_id = topfolders[\"data\"][0][\"id\"]\n",
Expand Down Expand Up @@ -279,25 +257,14 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:10:29.255473Z",
"start_time": "2024-03-02T14:10:28.121907Z"
}
},
"outputs": [
{
"data": {
"text/plain": [
"'urn:adsk.wipprod:dm.lineage:DjXtlXoJQyS6D1R-gRhI8A'"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"projects_id = \"b.1f7aa830-c6ef-48be-8a2d-bd554779e74b\"\n",
"folderId = \"urn:adsk.wipprod:fs.folder:co.5ufH-U8yRjaZ-USJxxN_Mw\"\n",
Expand All @@ -316,20 +283,9 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'ACCKL1-EXY-C-FAC-MECH-01.rvt'"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"outputs": [],
"source": [
"item_name = bim360.get_item_display_name(projects_id, itemId)\n",
"item_name"
Expand Down Expand Up @@ -375,18 +331,9 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"URN for item urn:adsk.wipprod:dm.lineage:DjXtlXoJQyS6D1R-gRhI8A with version 2 is:\n",
"URN:dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLkRqWHRsWG9KUXlTNkQxUi1nUmhJOEE_dmVyc2lvbj0y\n"
]
}
],
"outputs": [],
"source": [
"urn = bim360.get_urn_item_version(projects_id, itemId, 2)\n",
"print(f\"URN for item {itemId} with version 2 is:\\nURN:{urn}\")"
Expand Down

0 comments on commit 386b5aa

Please sign in to comment.