Message 1 of 5
Getting the Active AcadApplication
Not applicable
12-30-2002
06:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have created an activex dll containing some public methods in that. I have created an Object ARX in which I have defined the command and menu. From that Arx I am calling the public methods in the Activex dll.
For getting the Acad application in the dll I am using the GetObject of VB. My problem is that the GetObject returns the first instance of the AutoCAd if the multiple instances of the AutoCAd are running. Some times it happens that we have called the command from some where elae and it is running some where else. To get the solutions of this I tried to expose the application property in my dll and setting its balue from my Arx application, but when the wraper class is created it converts IAcadApplication data type in dll as structure. But when we are adding class from tlb, IAcadApplication is a class and hence conflicts is created. There is one solution to develop the whole application in C++ as object arx but that will take a lot of time and this is the reason I am developing the dlls in VB and trying to call it from an arx. So can any body help me out so that I can get the Application object of the Active acad application and not the first running ACAd application?
Thanks in advance
Manoj