DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


DG Kernel Component in Delphi

Specific to Delphi: It is recommended to disable KernelCADEvent and request equivalent DgkMiscEvent instead like: m_dgk.RequestEvent(eEventKernelCAD, false); m_dgk.RequestEvent(eEventDgkMisc, true); as Delphi does not interpret KernelCADEvent signature correctly.

The steps below describe integration of DG Kernel control into Delphi IDE. These steps are needed after any changes in interface of DG Kernel, normally after upgrading to a next version. Sometimes new functionality is added in updates between minor versions. We recommend checking for that in what is new section of download page.

  • In the menu of Delphi IDE/RAD Studio select Component > Import Component
  • Select Import ActiveX Control in the form and press Next
  • Select the KernelCAD Pro ActiveX module in the list. Click Next
  • Make sure Generate Component Wrappers checked. Click Next
  • Select Create Unit option. Click Finish
  • File KERNELCADLib_TLB will be created. You can close it.
  • After this you can can use KenelCAD control on your forms using Palette > ActiveX group

See also: Patch Delphi tutorial