Skip to content

Commit

Permalink
add item urn report
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Feb 28, 2024
1 parent 104fbc5 commit 4630b79
Showing 1 changed file with 86 additions and 7 deletions.
93 changes: 86 additions & 7 deletions docs/Tutorials/03. Explore Versions Item and Derivative Urn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 1,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand All @@ -47,7 +47,16 @@
{
"data": {
"text/html": [
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>APSToolkit, 1.0.4</span></li></ul></div></div>"
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>APSToolkit, 1.0.7</span></li></ul></div></div>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/plain": [
"Loading extensions from `C:\\Users\\vho2\\.nuget\\packages\\microsoft.data.analysis\\0.21.1\\interactive-extensions\\dotnet\\Microsoft.Data.Analysis.Interactive.dll`"
]
},
"metadata": {},
Expand All @@ -60,7 +69,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 2,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand All @@ -86,7 +95,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 3,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand Down Expand Up @@ -114,7 +123,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 4,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand Down Expand Up @@ -184,7 +193,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 5,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand Down Expand Up @@ -234,7 +243,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 13,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand Down Expand Up @@ -262,6 +271,76 @@
"Console.WriteLine(\"Derivative Urn: \" + derivativeUrn);"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### Generate Report URN By ItemId"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
},
"polyglot_notebook": {
"kernelName": "csharp"
},
"vscode": {
"languageId": "polyglot-notebook"
}
},
"outputs": [
{
"data": {
"text/html": [
"<table id=\"table_638447335971005262\"><thead><tr><th><i>index</i></th><th>ItemId</th><th>Version</th><th>URN</th><th>LastModifiedTime</th></tr></thead><tbody><tr><td><i><div class=\"dni-plaintext\"><pre>0</pre></div></i></td><td>urn:adsk.wipprod:dm.lineage:Od8txDbKSSelToVg1oc1VA</td><td>28</td><td>dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLk9kOHR4RGJLU1NlbFRvVmcxb2MxVkE_dmVyc2lvbj0yOA</td><td>2/22/2024 3:40:47 AM</td></tr><tr><td><i><div class=\"dni-plaintext\"><pre>1</pre></div></i></td><td>urn:adsk.wipprod:dm.lineage:Od8txDbKSSelToVg1oc1VA</td><td>27</td><td>dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLk9kOHR4RGJLU1NlbFRvVmcxb2MxVkE_dmVyc2lvbj0yNw</td><td>2/22/2024 3:24:11 AM</td></tr><tr><td><i><div class=\"dni-plaintext\"><pre>2</pre></div></i></td><td>urn:adsk.wipprod:dm.lineage:Od8txDbKSSelToVg1oc1VA</td><td>26</td><td>dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLk9kOHR4RGJLU1NlbFRvVmcxb2MxVkE_dmVyc2lvbj0yNg</td><td>2/22/2024 2:21:53 AM</td></tr><tr><td><i><div class=\"dni-plaintext\"><pre>3</pre></div></i></td><td>urn:adsk.wipprod:dm.lineage:Od8txDbKSSelToVg1oc1VA</td><td>25</td><td>dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLk9kOHR4RGJLU1NlbFRvVmcxb2MxVkE_dmVyc2lvbj0yNQ</td><td>2/21/2024 3:13:36 AM</td></tr><tr><td><i><div class=\"dni-plaintext\"><pre>4</pre></div></i></td><td>urn:adsk.wipprod:dm.lineage:Od8txDbKSSelToVg1oc1VA</td><td>24</td><td>dXJuOmFkc2sud2lwcHJvZDpmcy5maWxlOnZmLk9kOHR4RGJLU1NlbFRvVmcxb2MxVkE_dmVyc2lvbj0yNA</td><td>2/21/2024 2:34:14 AM</td></tr></tbody></table><style>\r\n",
".dni-code-hint {\r\n",
" font-style: italic;\r\n",
" overflow: hidden;\r\n",
" white-space: nowrap;\r\n",
"}\r\n",
".dni-treeview {\r\n",
" white-space: nowrap;\r\n",
"}\r\n",
".dni-treeview td {\r\n",
" vertical-align: top;\r\n",
" text-align: start;\r\n",
"}\r\n",
"details.dni-treeview {\r\n",
" padding-left: 1em;\r\n",
"}\r\n",
"table td {\r\n",
" text-align: start;\r\n",
"}\r\n",
"table tr { \r\n",
" vertical-align: top; \r\n",
" margin: 0em 0px;\r\n",
"}\r\n",
"table tr td pre \r\n",
"{ \r\n",
" vertical-align: top !important; \r\n",
" margin: 0em 0px !important;\r\n",
"} \r\n",
"table th {\r\n",
" text-align: start;\r\n",
"}\r\n",
"</style>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"using APSToolkit.Utils;\n",
"var dt = bim360.BatchReportItem(projectId,itemId);\n",
"var df = dt.ToDataFrame();\n",
"df.Head(5)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down

0 comments on commit 4630b79

Please sign in to comment.