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


IModelSearch_KC Interface

CreateDefaultDescription
FindItem

The interface allows finding entities by their types or other parameters.  The interface can be queried from IModel* interfaces

See also IInterface List


HRESULT CreateDefaultDescription(IDictionary_KC** description)

Parameters

description - [out, retval] New dictionary for the FindItem method

Remarks:

The method creates a new dictionary with default parameters and structure expected by the FindItem method


HRESULT FindItem(IDictionary_KC* description, IItem** iObject)

Parameters

description - [in] A dictionary created by the  CreateDefaultDescription() method

iObject- [out, retval] The found item or null reference if no matching item found

Remarks:

The method searches the model for the first item matching description. description must be created by the CreateDefaultDescription() method above

The dictionary has the following structure:

Name Type Description Default Value
EObjectType_Par Integer Valie must coinside with one of EObjectType enumeration. EObjectType.eObjTypeNULL
IncludeChildren Boolean If false only the top level objects are searched true

The method returns error if EObjectType_Par parameter was not specified

The above means that in this update onlysearch by entity type is available. Contact DInsight to request more options.