Skip to content

Commit

Permalink
changes due to the new comtypes release
Browse files Browse the repository at this point in the history
  • Loading branch information
BALOGHBence committed Feb 21, 2022
1 parent 9c4a822 commit 6804fea
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 55 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ areas = axmodel.Surfaces[:].Area

Click [***here***](https://github.com/AxisVM/pyaxisvm/blob/6abfebdfd26a76721836e1b490465d1f5a474a83/tips_and_tricks.md) to get a full overview about the pythonic usage of the library.

## **License and Acknowledgments**
## **License and Acknowledgements**

**PyAxisVM** is licensed under the MIT license.

Expand Down
42 changes: 21 additions & 21 deletions examples/NavierPlate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -48,7 +48,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -73,7 +73,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -104,7 +104,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -135,7 +135,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 24,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -156,7 +156,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 25,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -197,7 +197,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 26,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -207,7 +207,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 27,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -235,7 +235,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 28,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -244,7 +244,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -303,7 +303,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 30,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -312,7 +312,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 31,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -341,7 +341,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 32,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -365,7 +365,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 33,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -419,7 +419,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 34,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -458,7 +458,7 @@
},
{
"cell_type": "code",
"execution_count": 16,
"execution_count": 35,
"metadata": {},
"outputs": [
{
Expand All @@ -467,7 +467,7 @@
"1"
]
},
"execution_count": 16,
"execution_count": 35,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -494,7 +494,7 @@
},
{
"cell_type": "code",
"execution_count": 17,
"execution_count": 36,
"metadata": {},
"outputs": [
{
Expand All @@ -503,7 +503,7 @@
"1"
]
},
"execution_count": 17,
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -561,11 +561,11 @@
},
{
"cell_type": "code",
"execution_count": 18,
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
"del axvm"
"axvm.Quit()"
]
}
],
Expand Down
52 changes: 33 additions & 19 deletions examples/ss_beam_M.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,23 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 16,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Exception ignored in: <function AxApp.__del__ at 0x000002260680B550>\n",
"Traceback (most recent call last):\n",
" File \"f:\\GitHub\\pyaxisvm\\.venv\\lib\\site-packages\\axisvm\\com\\axapp.py\", line 53, in __del__\n",
" self.Quit()\n",
" File \"f:\\GitHub\\pyaxisvm\\.venv\\lib\\site-packages\\axisvm\\com\\axapp.py\", line 48, in Quit\n",
" self._wrapped.UnLoadCOMClients()\n",
"_ctypes.COMError: (-2147023174, 'The RPC server is unavailable.', (None, None, None, 0, None))\n"
]
}
],
"source": [
"from axisvm.com.client import start_AxisVM\n",
"axvm = start_AxisVM(visible=True, daemon=True)\n"
Expand All @@ -54,7 +68,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -77,7 +91,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 18,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -102,7 +116,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 19,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -129,7 +143,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -160,7 +174,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 21,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -190,7 +204,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 22,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -211,7 +225,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 23,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -255,7 +269,7 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": 24,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -298,7 +312,7 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 25,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -356,7 +370,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 26,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -391,7 +405,7 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 27,
"metadata": {},
"outputs": [
{
Expand All @@ -400,7 +414,7 @@
"1"
]
},
"execution_count": 12,
"execution_count": 27,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -427,7 +441,7 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 28,
"metadata": {},
"outputs": [
{
Expand All @@ -436,7 +450,7 @@
"1"
]
},
"execution_count": 13,
"execution_count": 28,
"metadata": {},
"output_type": "execute_result"
}
Expand Down Expand Up @@ -495,7 +509,7 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 29,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -526,7 +540,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 30,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -581,7 +595,7 @@
"metadata": {},
"outputs": [],
"source": [
"del axvm"
"axvm.Quit()"
]
}
],
Expand Down
2 changes: 1 addition & 1 deletion examples/ss_beam_P.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@
"metadata": {},
"outputs": [],
"source": [
"del axvm"
"axvm.Quit()"
]
}
],
Expand Down
Loading

0 comments on commit 6804fea

Please sign in to comment.