DGKC Control Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Licensing
Expand ModelsModels
Expand DG Kernel ControlDG Kernel Control
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Expand ModelModel
Expand ViewView
Collapse General ComputingGeneral Computing
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Support
Skip Navigation LinksHome Page > API Reference > General Computing > IObject_DG Go to ActiveX docs Search Documentation


IObject_DG Interface

IsSameInstance
IsSame
GetHash
Copy
Clone
Execute

IObject_DG represents a generic software object. It is implemented by most of relatively complex objects in DG Kernel software.


bool IsSameInstance(IObject_DG object)

Returns true if this and object are the same instances in memory at the time of the call


ThreeState_DG IsSame(IObject_DG object, IDictionary_DG filterOrNull)

Not implemented in this update


int GetHash()

Returns a 32 bit opaque data, which identifies this object in memory


void Copy(IObject_DG object, IDictionary_DG filterOrNull)

Copies attributes. If filterOrNull is not null attributes to be copied are filtered. Details of the expected filter are provided in specific topics, where applicable


IObject_DG Clone()

Creates a new instance of this object and copies its attributes by executing Copy(this, null);


bool Execute(string operation, IDictionary_DG context)

Implemented cases:

Implemented by (Query from) Operation string Expected context Result Description
IModel_DG Is context.SetString("Question", "RawUserDataV7"); context.GetBool("Answer"); Returns true via context if the data exists
IModel_DG Clear context.SetString("Attribute", "RawUserDataV7"); RawUserDataV7 blob is deleted, if it exists Deletes RawUserDataV7 blob, if it exists

See Test_IModel_DG.TestRawData1() in C# InterfaceTests sample app for an example.