Hi i was trying to get handle on two different Design files in C# using Marshal.GetActiveObject by Application class() = new Application but i was able to get handle only on single Design file.
My final out come is to synchronize these two different design files through Get extents and origin point and co-ordinates.
Hi Pavan Kumar,
in my opinion you are trying to use GetActiveObject in a way that is in conflict with its specification. The quesion is not specific for MicroStation, but general for any OLE Automatiion development. I found pretty the same at StackOverflow (including some ideas).
My question is why you want to access MicroStation from external process, which is always more complicated and requires some extra effort in some situations, and don't create MicroStation add-in.
An regardless you acess MicroStation VBA/COM API from add-in or external process, you can use work file(s) to open and work with more design files. But it's hard to say if it's the right way without knowing more what do you want to achieve.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point