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 four .NET controls in the installation: DGKCwpfn8 (.NET 8.0 WPF), DGKCn8 (.NET 8.0 Win Forms), DGKCn6 (.NET 6.0 Win Forms) and DGKC (.NET 4.8 Win Forms). 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.

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 DGKCwpfn8 to a .NET 8.0 or later WPF Visual Studio project

In Project menu select "Manage NuGet Packages.." make sure that you have a "DKC Instalation" package source pointing to the DGKernel_7_4\Bin\AnyCPU\ folder of the DGK installation directory. If not, add it using the plus button at the top. Make sure "DKC Instalation" is the current package source at the top right corner.

In Browse tab select DGKCwpfn8. Click Install on the right. Click Apply when prompted. DGKCwpfn8 will appear under Dependencies > Packages. See also WPF Patch Programming Tutorial.

Occasinally the package or the application may be out of date. Try istalling the package using nuget.org, if you see a compilation error or an unexpected behaviour.

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

In Project menu select "Manage NuGet Packages.." make sure that you have a "DKC Instalation" package source pointing to the DGKernel_7_4\Bin\AnyCPU\ folder of the DGK installation directory. If not, add it using the plus button at the top. Make sure "DKC Instalation" is the current package source at the top right corner.

In Browse tab select DGKCn8. Click Install on the right. Click Apply when prompted. The control will appear in the DGKCn8 group in the control toolbox in design mode. See also Patch Programming Tutorial.

Occasinally the package or the application may be out of date. Try istalling the package using nuget.org, if you see a compilation error or an unexpected behaviour.

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

In Project menu select "Manage NuGet Packages.." make sure that you have a "DKC Instalation" package source pointing to the DGKernel_7_4\Bin\AnyCPU\ folder of the DGK installation directory. If not, add it using the plus button at the top. Make sure "DKC Instalation" is the current package source at the top right corner.

In Browse tab select DGKCn6. Click Install on the right. Click Apply when prompted. The control will appear in the DGKCn6 group in the control toolbox in design mode. See also Patch Programming Tutorial.

Occasinally the package or the application may be out of date. Try istalling the package using nuget.org, if you see a compilation error or an unexpected behaviour.

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.