IDSViewHooks

Use this interface to receive a notification before a drawing is completed in Cimatron (before the SwapBuffer).

Cimatron uses a multi-threading mechanism for drawing. The notification is sent in the worker thread.

The component starts when Cimatron is launched. When an event occurs, the application calls appropriate interface methods from the component.

Set up the notification

  1. Write a COM class derived from 'interop.CimBaseAPI.IDSViewHooks' that overrides 'SwapBufferNotification(object iApp)' function in public,
  2. Register the class in the system registry.
  3. Open the 'DSViewsConfig.ini' file in notepad - This file is located in the Cimatron Program data folderProgram data folderC:\ProgramData\Cimatron\Cimatron\<version_number>\Data\  that is appropriate to your Cimatron version number.
  4. Add CLSID under the node 'DSView Callbacks' in the format of CLSID = CLSID
  5. Change the output of this project to the Cimatron installation folder so that project output (dll) will be added to the Cimatron EXE folder.

Namespace

interop.CimBaseAPI

Compatibility

Cimatron 2026 or later

Properties

None

Methods

None

Events

bool

SwapBufferNotification

(int ihdc, int ihRC, int iPrimitives, object iApp)

bool

GetBoundBox

(out object oMinPnt, out object oMaxPnt)

bool

HitGeometry

(out object oHitPnt)

Remarks

None

Example