api_cast
Cast a KOMPAS-3D object handle to a different SDK interface to access additional methods. Reports COM failure if the object lacks support.
Instructions
QueryInterface to an additional installed SDK interface, e.g. IPart7 to IModelContainer.
A known type does not guarantee that a given object supports it. COM failure is reported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes | ||
| library | No | kAPI7 | |
| interface | Yes |