Skip to content

Commit

Permalink
update docs relate to #4
Browse files Browse the repository at this point in the history
  • Loading branch information
chuongmep committed Mar 5, 2024
1 parent 095456e commit 24599c1
Showing 1 changed file with 150 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 30,
"execution_count": 36,
"metadata": {
"dotnet_interactive": {
"language": "csharp"
Expand All @@ -16,28 +16,31 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: aps-toolkit in c:\\python311\\lib\\site-packages (0.2.2)Note: you may need to restart the kernel to use updated packages.\n",
"\n",
"Requirement already satisfied: aps-toolkit in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (0.2.5)\n",
"Collecting aps-toolkit\n",
" Downloading aps_toolkit-0.2.3-py3-none-any.whl.metadata (1.8 kB)\n",
"Requirement already satisfied: requests in c:\\python311\\lib\\site-packages (from aps-toolkit) (2.31.0)\n",
"Requirement already satisfied: pandas in c:\\python311\\lib\\site-packages (from aps-toolkit) (2.2.1)\n",
"Requirement already satisfied: numpy<2,>=1.23.2 in c:\\python311\\lib\\site-packages (from pandas->aps-toolkit) (1.26.0)\n",
"Requirement already satisfied: python-dateutil>=2.8.2 in c:\\python311\\lib\\site-packages (from pandas->aps-toolkit) (2.8.2)\n",
"Requirement already satisfied: pytz>=2020.1 in c:\\python311\\lib\\site-packages (from pandas->aps-toolkit) (2024.1)\n",
"Requirement already satisfied: tzdata>=2022.7 in c:\\python311\\lib\\site-packages (from pandas->aps-toolkit) (2024.1)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in c:\\python311\\lib\\site-packages (from requests->aps-toolkit) (3.2.0)\n",
"Requirement already satisfied: idna<4,>=2.5 in c:\\python311\\lib\\site-packages (from requests->aps-toolkit) (3.4)\n",
"Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\python311\\lib\\site-packages (from requests->aps-toolkit) (2.0.4)\n",
"Requirement already satisfied: certifi>=2017.4.17 in c:\\python311\\lib\\site-packages (from requests->aps-toolkit) (2023.7.22)\n",
"Requirement already satisfied: six>=1.5 in c:\\python311\\lib\\site-packages (from python-dateutil>=2.8.2->pandas->aps-toolkit) (1.16.0)\n",
"Downloading aps_toolkit-0.2.3-py3-none-any.whl (12 kB)\n",
" Using cached aps_toolkit-0.2.8-py3-none-any.whl.metadata (1.7 kB)\n",
"Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from aps-toolkit) (2.28.1)\n",
"Requirement already satisfied: pandas in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from aps-toolkit) (2.2.0)\n",
"Requirement already satisfied: numpy<2,>=1.23.2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from pandas->aps-toolkit) (1.23.5)\n",
"Requirement already satisfied: python-dateutil>=2.8.2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from pandas->aps-toolkit) (2.8.2)\n",
"Requirement already satisfied: pytz>=2020.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from pandas->aps-toolkit) (2022.7)\n",
"Requirement already satisfied: tzdata>=2022.7 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from pandas->aps-toolkit) (2023.4)\n",
"Requirement already satisfied: charset-normalizer<3,>=2 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests->aps-toolkit) (2.1.1)\n",
"Requirement already satisfied: idna<4,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests->aps-toolkit) (3.4)\n",
"Requirement already satisfied: urllib3<1.27,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests->aps-toolkit) (1.26.13)\n",
"Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from requests->aps-toolkit) (2022.12.7)\n",
"Requirement already satisfied: six>=1.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from python-dateutil>=2.8.2->pandas->aps-toolkit) (1.16.0)\n",
"Using cached aps_toolkit-0.2.8-py3-none-any.whl (13 kB)\n",
"Installing collected packages: aps-toolkit\n",
" Attempting uninstall: aps-toolkit\n",
" Found existing installation: aps-toolkit 0.2.2\n",
" Uninstalling aps-toolkit-0.2.2:\n",
" Successfully uninstalled aps-toolkit-0.2.2\n",
"Successfully installed aps-toolkit-0.2.3\n"
" Found existing installation: aps-toolkit 0.2.5\n",
" Uninstalling aps-toolkit-0.2.5:\n",
" Successfully uninstalled aps-toolkit-0.2.5\n",
"Successfully installed aps-toolkit-0.2.8\n",
"\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.3.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m24.0\u001b[0m\n",
"\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip3 install --upgrade pip\u001b[0m\n",
"Note: you may need to restart the kernel to use updated packages.\n"
]
}
],
Expand Down Expand Up @@ -111,6 +114,11 @@
{
"data": {
"text/plain": [
"name Model\n",
"schema_name rvt\n",
"schema_version 1.0\n",
"is_doc_property 1\n",
"Category Revit Document\n",
"Organization Name \n",
"Organization Description \n",
"Building Name \n",
Expand All @@ -128,6 +136,10 @@
"Workset Project Info\n",
"Edited by \n",
"Route Analysis Settings \n",
"Level 8\n",
"child 4191\n",
"View 42\n",
"Sheet 32\n",
"dtype: object"
]
},
Expand All @@ -141,6 +153,115 @@
"docs_info"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### I want to get all data of the revit model"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>dbId</th>\n",
" <th>external_id</th>\n",
" <th>...</th>\n",
" <th>Plan View Symbols End 2 (Default)</th>\n",
" <th>Non-Plan View Symbols (Default)</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>2</td>\n",
" <td>9693c920-050e-4443-9b38-2491295576d1-00000163</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>3</td>\n",
" <td>9693c920-050e-4443-9b38-2491295576d1-00000aea</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>4</td>\n",
" <td>eabed363-0187-429d-91a7-2d7d264a1a0c-000015ba</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>5</td>\n",
" <td>eabed363-0187-429d-91a7-2d7d264a1a0c-000015e8</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>6</td>\n",
" <td>eabed363-0187-429d-91a7-2d7d264a1a0c-000015ff</td>\n",
" <td>...</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>5 rows × 712 columns</p>\n",
"</div>"
],
"text/plain": [
" dbId external_id ... Plan View Symbols End 2 (Default) Non-Plan View Symbols (Default)\n",
"0 2 9693c920-050e-4443-9b38-2491295576d1-00000163 ... NaN NaN\n",
"1 3 9693c920-050e-4443-9b38-2491295576d1-00000aea ... NaN NaN\n",
"2 4 eabed363-0187-429d-91a7-2d7d264a1a0c-000015ba ... NaN NaN\n",
"3 5 eabed363-0187-429d-91a7-2d7d264a1a0c-000015e8 ... NaN NaN\n",
"4 6 eabed363-0187-429d-91a7-2d7d264a1a0c-000015ff ... NaN NaN\n",
"\n",
"[5 rows x 712 columns]"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df = prop_reader.get_all_data()\n",
"pd.set_option('display.max_columns', 5)\n",
"pd.set_option('display.width', 1000)\n",
"df.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -150,7 +271,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 6,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:12:32.072342Z",
Expand Down Expand Up @@ -312,7 +433,7 @@
"19 1864 HVAC Load Schedules"
]
},
"execution_count": 8,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -335,7 +456,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 7,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:12:32.482109Z",
Expand Down Expand Up @@ -437,7 +558,7 @@
"9 2098 Project"
]
},
"execution_count": 9,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -460,7 +581,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 8,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:12:32.964962Z",
Expand Down Expand Up @@ -562,7 +683,7 @@
"9 1270 Temporary Notes"
]
},
"execution_count": 10,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -585,7 +706,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 9,
"metadata": {},
"outputs": [
{
Expand All @@ -610,7 +731,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 10,
"metadata": {
"ExecuteTime": {
"end_time": "2024-03-02T14:12:33.147249Z",
Expand Down Expand Up @@ -667,7 +788,7 @@
"[1 rows x 77 columns]"
]
},
"execution_count": 12,
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
Expand Down

0 comments on commit 24599c1

Please sign in to comment.