Accepts a program ID and attempts to load it into AutoCAD as an in-process server.
See Also | Example
RetVal = object.GetInterfaceObject(ProgID)
The object or objects this method applies to.
The program ID of the interface object to return.
The interface object matching the program ID.
Although the object will be loaded into AutoCAD, it will not show up in its type library. The object will have its own type library. This method lets you connect to an ActiveX Automation server.
If possible, use version-dependent ProgIDs. If a GetInterfaceObject method uses a version-independent ProgID, change the method to use a version-dependent ProgID. For example, you would change AutoCAD.AcadLayerStateManager to AutoCAD.AcadLayerStateManager.16.