GetInterfaceObject Method |
Accepts a program ID and attempts to load it into AutoCAD as an in-process server.
Signature
RetVal = object.GetInterfaceObject(ProgID)
Object
Application
The object or objects this method applies to.
ProgID
String; input-only
The program ID of the interface object to return.
RetVal
Object
The interface object matching the program ID.
Remarks
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.
Comments? |