Hi, i have been trying to access bentley.interop.microstationdgn.dll through Python. I am aible to load library, but I have problem to get active MicrostationApplication. Then I try to create
Bentley.Interop.MicroStationDGN. ApplicationObjectConnector object, I am getting TypeError: 'interface takes exactly one argument'. Does someone knows that I should do to make it work?
Or is it another way to connect bentley.interop.microstationdgn.dll to Python?
def try3():
import clr, os
afolder="C:\\Program Files (x86)\\Bentley\\MicroStation V8i (SELECTseries)\\MicroStation\\assemblies"
afile="bentley.interop.microstationdgn.dll"
microPath=os.path.join(afolder, afile)
clr.AddReference(microPath)
from Bentley.Interop.MicroStationDGN import Application,ApplicationObjectConnector,Point3d, TextElement
a=ApplicationObjectConnector()
try3()
TypeError: 'interface takes exactly one argument'