Skip to main content

Motion Standalone Preprocessor C# library 2026 R1

Class KernelObject

Last update: 09.03.2026

Namespace: VM.CAD.Kernel
Assembly: VM.CAD.Kernel.dll

public abstract class KernelObject

Inheritance

object ← KernelObject

Derived

Application, Canvas, Document, Entity, Kernel, KernelExtension, Layer, LayerManager, Session

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Constructors

KernelObject(UIntPtr, bool)

protected KernelObject(UIntPtr key, bool isLock = true)

Parameters

key UIntPtr

isLock bool

Fields

VMK_ARGUMENT_NULL

protected const int VMK_ARGUMENT_NULL = 1

Field Value

int

VMK_ARGUMENT_TYPE

protected const int VMK_ARGUMENT_TYPE = 2

Field Value

int

VMK_OK

protected const int VMK_OK = 0

Field Value

int

Properties

Key

public UIntPtr Key { get; }

Property Value

UIntPtr

Methods

Dispose()

public void Dispose()

DisposeManagedResource()

protected virtual void DisposeManagedResource()

DisposeUnmanagedResource()

protected virtual void DisposeUnmanagedResource()

Execute(Func<int>)

protected static void Execute(Func<int> function)

Parameters

function Func<int>

GetFrom<TResult>(delGetFrom<TResult>, bool)

protected static TResult GetFrom<TResult>(KernelObject.delGetFrom<TResult> getFrom, bool checkFunctionReturnValue = true)

Parameters

getFrom KernelObject.delGetFrom<TResult>

checkFunctionReturnValue bool

Returns

TResult

Type Parameters

TResult

Connect with Ansys