Michael Stark
Usenet Archive
- Joined
- Aug 3, 2000
- Messages
- 50
- Reaction score
- 0
Hello All
This is first time I try to use OLE to direct MicroStation, when I'm using a
CreateObject("MicroStation.Application")
, I'm getting a new MicroStation but this isn't what I want. I need to get the currently opened MicroStation - I have the name of the designfile. I've tried to do the following
dim msApp as Object
set msApp = getObject ("c:\data\test\test.dgn")
but got only a error message (file- or classname while automation not found(VB6 in german)). Even when I try to complete the statement with the class ("MicroStationDgnFile" or "MicroStation.Application") I only get an error (Objectcreation by ActiveX not possible). (the file exists and when I try the same statement on another filetype (like .jpg) an objekt is returned)
has anybody successfully used the getObject-statement ?
Please help, its very urgent
Michael
This is first time I try to use OLE to direct MicroStation, when I'm using a
CreateObject("MicroStation.Application")
, I'm getting a new MicroStation but this isn't what I want. I need to get the currently opened MicroStation - I have the name of the designfile. I've tried to do the following
dim msApp as Object
set msApp = getObject ("c:\data\test\test.dgn")
but got only a error message (file- or classname while automation not found(VB6 in german)). Even when I try to complete the statement with the class ("MicroStationDgnFile" or "MicroStation.Application") I only get an error (Objectcreation by ActiveX not possible). (the file exists and when I try the same statement on another filetype (like .jpg) an objekt is returned)
has anybody successfully used the getObject-statement ?
Please help, its very urgent
Michael