DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Expand ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Expand API ReferenceAPI Reference
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 Controls > Interactive Functionality > Auxiliary Views > Model Explorer Go to DGKC docs Search Documentation


Model Explorer

Model Explorer of DG Kernel components is a useful tool, which displays structure of the model, allows quick finding of objects, manipulates view and performs some model editing operations like movement of objects, Boolean Subtract and other

To open model explorer select Advanced > Model Explorer in the context menu (right click)

The explorer handles multiple selection in the object tree. It follows the normal Windows multiple selection rules: Hold control to click several objects. Hold shift and click first and last to select a range of objects.

The "Position and Orientation" button displays and allows modification of location and orientation of an object or a set of them. The window shows/modifies the local frame of the object.

Model Explorer can be opened programmatically using IGlobalAPI_DG.LaunchExplorer()

Selection Notification

When requested, the component raises DG Kernel event to notify application about changes in item selection in the Model Explorer. Turn ExplorerSelectionNotify property of component context on to receive the notification.

In this case the eventType parameter of the KernelCADEvent( long eventType, ...) callback method is the eEventExplorerSelection (value 5) member of EDIEvent Enumeration.

The actual type of the second parameter param0 in KernelCADEvent( ...) is IList. This is a list of entities currently selected in the Model Explorer. Elements of the list have type IItem. Query for IEntity_DG from the IItem yields a valid interface from which other related interfaces can be queried.

Source Code

DG Kernel product includes C# source code for the Model Explorer. By default it is installed into C:/Projects/DGKernel_<version>/KC/Apps/Edit/EditorsNet folder. Open EditorsNet\Explorer\Explorer.sln.

If it is needed to copy the project, make sure that the target dll from the project is created in the Bin folder of the DG Kernel installation directory, where DG Kernel will be looking for it.