sticksandtriangles
Structural
- Apr 7, 2015
- 472
I am trying to retrieve the section properties of specific frame elements with python; it seems like this should be really easy.
Sample code is shown below:
This is the error that I get:
After receiving this error, ETABs proceeds to crash and shut down, any ideas on how to solve?
Thanks!
S&T
Sample code is shown below:
Python:
Frame = "33"
PropName = ""
SAuto = ""
x = SapModel.FrameObj.GetSection(Frame, SAuto, PropName)
This is the error that I get:
Python:
Traceback (most recent call last):
File "C:/______/Desktop/Python/v1_Get_Section_Property.py", line 16, in <module>
x = SapModel.FrameObj.GetSection(Frame, SAuto, PropName)
File "C:\Users\____\AppData\Local\Continuum\anaconda3\lib\site-packages\comtypes\__init__.py", line 655, in call_with_inout
rescode = func(self_, *args, **kw)
_ctypes.COMError: (-2147417851, 'The server threw an exception.', (None, None, None, 0, None))
After receiving this error, ETABs proceeds to crash and shut down, any ideas on how to solve?
Thanks!
S&T