DGKC Control Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Licensing
Expand ModelsModels
Collapse DG Kernel ControlDG Kernel Control
Expand API ReferenceAPI Reference
Expand ViewsViews
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > DG Kernel Control > DG Kernel Control Go to ActiveX docs Search Documentation


DGKC Controls

DGKC .NET controls allows displaying and modifying 3D models. See Creating models.

There are six pure .NET controls in the installation:

Control name Framework
DGKCwpfn10 .NET 10.0 WPF
DGKCn10 .NET 10.0 Win Forms
DGKCwpfn8 .NET 8.0 WPF
DGKCn8 .NET 8.0 Win Forms
DGKCn6 .NET 6.0 Win Forms
DGKC .NET 4.8 .NET Framework

The top components and supporting files are located at Bin\AnyCPU\ folder of the installation Differences between all DGK controls are only at top-level. Core implementation is shared by all controls. The interface is the same up to minor differences imposed by the language.

For completeness: There is also KerCADne.ocx ActiveX control provided for backward compatibility. It is not recommended for new development.

The main property of the control is the path of the model file. This property can be set at design time and changed programmatically at run time. See Properties for the full list. The model path can be an empty string. In which case the display of the control window will be empty. This option is useful when accessing the file system is not desirable and the model needs to be constructed at runtime

See Programming DGKC Control topic about manipulation of the model and its rendering properties at runtime.

Adding DGKCwpfn10 to a .NET 10.0 or later WPF Visual Studio project

In Project menu select "Manage NuGet Packages..". Make sure 'nuget.org' is the current source in the package source combo. Open Browse tab of the NuGet Package Manager and type DGKCwpfn10 in the search box. This should display a single item. Select the item and click Install on the right. Click Apply when prompted. DGKCwpfn10 will appear under Dependencies > Packages. See also WPF Patch Programming Tutorial.

Adding DGKCn10 to a .NET 10.0 or later Win Forms Visual Studio project

In Project menu select "Manage NuGet Packages.." Make sure 'nuget.org' is the current source in the package source combo. Open Browse tab of the NuGet Package Manager and type DGKCn10 in the search box. This should display a single item. Select the item and click Install on the right. Click Apply when prompted. DGKCn10 will appear under Dependencies > Packages.

The control will appear in the control toolbox in design mode. See also Patch Programming Tutorial.

Adding DGKCwpfn8 to a .NET 8.0 or later WPF Visual Studio project

In Project menu select "Manage NuGet Packages.." Make sure 'nuget.org' is the current source in the package source combo. Open Browse tab of the NuGet Package Manager and type DGKCwpfn8 in the search box. This should display a single item. Select the item and click Install on the right. Click Apply when prompted. DGKCwpfn8 will appear under Dependencies > Packages. See also WPF Patch Programming Tutorial.

Adding DGKCn8 to a .NET 8.0 or later Win Forms Visual Studio project

In Project menu select "Manage NuGet Packages.." Make sure 'nuget.org' is the current source in the package source combo. Open Browse tab of the NuGet Package Manager and type DGKCn8 in the search box. This should display a single item. Select the item and click Install on the right. Click Apply when prompted. DGKCn8 will appear under Dependencies > Packages.

The control will appear in the control toolbox in design mode. See also Patch Programming Tutorial.

Adding DGKCn6 to a .NET 6.0 Win Forms Visual Studio project

In Project menu select "Manage NuGet Packages.." Make sure 'nuget.org' is the current source in the package source combo. Open Browse tab of the NuGet Package Manager and type DGKCn6 in the search box. This should display a single item. Select the item and click Install on the right. Click Apply when prompted. DGKCn6 will appear under Dependencies > Packages.

The control will appear in the control toolbox in design mode. See also Patch Programming Tutorial.

Adding DGKC to a .NET 4.* Win Forms Visual Studio project

Add reference to the installed DGKC.dll to the project. The control will appear in the control toolbox and can be added to a form in design mode. See also Patch Programming Tutorial DGK v7.1.