Skip to main content

Motion Standalone Preprocessor C# library 2024 R2

Class Kernel

Last update: 16.07.2025

Namespace: VM.Managed.CAD
Assembly: VMAppCore.dll

This base class is to represent the kernel.

public abstract class Kernel

Inheritance

object ← Kernel

Extension Methods

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

Constructors

Kernel(IKernel*)

Initializes a new instance of the class

protected Kernel(IKernel* pKernel)

Parameters

pKernel IKernel*

The kernal interface

Properties

IsLoading

Gets or sets a value indicating whether this instance is loading.

public bool IsLoading { get; set; }

Property Value

bool

Key

public UIntPtr Key { get; }

Property Value

UIntPtr

Methods

ClearSession()

Clear session.

public static void ClearSession()

ClearTemporaryEntity()

Clear temporary entity.

public static void ClearTemporaryEntity()

Dispose(bool)

[HandleProcessCorruptedStateExceptions]
protected virtual void Dispose(bool A_0)

Parameters

A_0 bool

Dispose()

destroy a instance of the class.

public override sealed void Dispose()

DoingSession()

Whether session is processing.

public static bool DoingSession()

Returns

bool

ExecuteOperation(string, string, Document3D, ref string)

public bool ExecuteOperation(string strType, string strArgument, Document3D doc, ref string strResult)

Parameters

strType string

strArgument string

doc Document3D

strResult string

Returns

bool

~Kernel()

Releases unmanaged resources and performs other cleanup operations before the is reclaimed by garbage collection.

protected ~Kernel()

Initialize()

public void Initialize()

SetIgnoreThreadID(bool)

public void SetIgnoreThreadID(bool bIgnore)

Parameters

bIgnore bool

Terminate()

public void Terminate()

UpdateSession()

Update session.

public static void UpdateSession()

Connect with Ansys