fracture_point
Structural
- Mar 7, 2019
- 58
Hi, I'm using the following code:
I'm getting an attribute error:
Does anyone know how to fix this?
I'm using Pycharm, ETABS v18.
import sys
import comtypes.client
try:
myETABSObject = comtypes.client.GetActiveObject("CSI.ETABS.API.ETABSObject")
except (OSError, comtypes.COMError):
print("No running instance of the program found or failed to attach.")
sys.exit(-1)
SapModel = myETABSObject.SapModel
import comtypes.client
try:
myETABSObject = comtypes.client.GetActiveObject("CSI.ETABS.API.ETABSObject")
except (OSError, comtypes.COMError):
print("No running instance of the program found or failed to attach.")
sys.exit(-1)
SapModel = myETABSObject.SapModel
I'm getting an attribute error:
AttributeError: module 'comtypes.gen.CSiAPIv1' has no attribute 'cOAPI'
Does anyone know how to fix this?
I'm using Pycharm, ETABS v18.