DG Kernel Control
DG Kernel ActiveX control allows displaying and modifying 3D models.
See Creating models.
To use DG Kernel control in an application, follow standard procedure for
using ActiveX controls in your development environment. Patch
Programming Tutorial demonstrates how to do it in Microsoft Development Environments. In 64 bit applications the control has to be inserted in 32 bit or AnyCPU configuration before switching to x64 configuration. More details.
DG Kernel
controls can also be created dynamically at runtime (See DIView programming
sample for details)
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 DG Kernel Control topic about manipulation
of the model and its rendering properties at runtime.
Refreshing Properties
Sometimes, for example when upgrading the application to new version of
DG Kernel, it is needed to refresh properties of the control which are stored in
the application's executable file. To do that: Open form or dialogue where the
control is added in form or resource editor. Make sure its properties are
modified, for example by toggling value of ShowLocalAxes property. Save all.
Undo the modification (by toggling second time). Rebuild the project
|