Use this interface to add external object like a Cimatron object. Many of these functions must be called from inside the SwapBufferNotification of IDSViewHooks.
interop.CimServicesAPI
Cimatron 2026 or later
|
Get, Set |
void |
|
|
Get, Set |
void |
|
|
Get, Set |
void |
|
|
Get, Set |
void |
|
|
Get, Set |
void |
|
|
Get, Set |
void |
|
|
Get, Set |
void |
|
|
Get, Set |
void |
|
|
Get, Set |
double[] |
|
|
Get, Set |
int |
|
|
Get, Set |
void |
|
void |
( ) |
|
|
void |
( ) |
|
|
void |
( ) |
|
|
void |
( int, int ) |
|
|
double[] |
( int, int ) |
|
|
double |
( double[] ) |
|
|
double[] |
( int, int ) |
|
|
void |
( ) |
|
|
void |
( double[] ) |
|
|
bool |
( int , out double[] , out int[] ) |
|
|
void |
( out double[] , out double[] , out double[] ) |
|
|
double |
( ) |
|
|
void |
(out double[] , out double[] ) |
NoneĀ
None
interop.CimAppAccess.AppAccess aAppAccess = new interop.CimAppAccess.AppAccess();
//Get application object from App access
interop.CimatronE.IApplication aCimApp = (interop.CimatronE.IApplication)aAppAccess.GetApplication();
// Get Open GL service Object
interop.CimServicesAPI.IOpenGLService aOpenGlService = (interop.CimServicesAPI.IOpenGLService)application.GetActiveViewOpenGlService();
import clr
#Adding references of required interop dlls
clr.AddReference("interop.CimAppAccess")
clr.AddReference("interop.CimatronE")
clr.AddReference("interop.CimServicesAPI")
clr.AddReference("interop.CimBaseAPI")
clr.AddReference("interop.CimMdlrAPI")
#importing modules from interop dlls
import interop.CimAppAccess
import interop.CimatronE
import interop.CimServicesAPI
import interop.CimBaseAPI
import interop.CimMdlrAPI
#Getting AppAccess Object
aCimAppAccess = CimAppAccess.AppAccess()
#Getting instance of CimatronE Application
aCimApp = None
while (aCimApp == None) :
aCimApp = CimatronE.IApplication(aCimAppAccess.GetApplication())
aOpenGlService = (interop.CimBaseAPI.IOpenGLService)(aCimApp.GetActiveViewOpenGlService())
