Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

bentley.interop.microstationdgn.dll for Python

$
0
0

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'


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>