Skip to main content

Motion Standalone Preprocessor C# library 2025 R2

Class OperationBase

Last update: 16.07.2025

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

This base class is to represent the operation.

public abstract class OperationBase : IOperation

Inheritance

objectOperationBase

Derived

ApplyOperation, BuildBodyOp, CADBodyApplyOperation, CheckValidationAboutBuildOp, CreateSubEntityOperation, DeleteBuilderOperation, GetAreaOfFaceOp, GetBodyFacesOp, GetBodyNameAttributeOp, GetBoundingBoxOp, GetDefaultMaxPenetrationOp, GetFacetInformationForFaceOp, GetLengthOfEdgeOp, GetManyTopologyColorOp, GetPiecewiseCurveOp, GetPointAndDirectionFromFacetOp, GetTopologyColorOp, GetVoidCountOp, GetVoidPointsOp, OperationDelegate, RebuildHiddenDocOp, RemoveDuplicatedEventOperation, SetNameAttributeOp, SetSelectionObjectOp

Implements

IOperation

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects(object, LinkPropertyType)

Constructors

OperationBase(View, object)

protected OperationBase(View view, object param)

Parameters

view View

param object

OperationBase(View)

protected OperationBase(View view)

Parameters

view View

OperationBase(Document, object)

protected OperationBase(Document doc, object param)

Parameters

doc Document

param object

OperationBase(Document)

protected OperationBase(Document doc)

Parameters

doc Document

OperationBase(object)

protected OperationBase(object param)

Parameters

param object

OperationBase()

protected OperationBase()

Fields

g_bDupicateMsg

public static bool g_bDupicateMsg

Field Value

bool

g_bRedrawKernel

public static bool g_bRedrawKernel

Field Value

bool

g_bSkipAddEvent

public static bool g_bSkipAddEvent

Field Value

bool

g_bVerify

public static bool g_bVerify

Field Value

bool

m_bIsHistoryMerge

protected bool m_bIsHistoryMerge

Field Value

bool

Properties

Document

protected Document Document { get; }

Property Value

Document

ExecutableOnHold

protected virtual bool ExecutableOnHold { get; }

Property Value

bool

ExecuteMacro

public static bool ExecuteMacro { get; set; }

Property Value

bool

GlobalOverride

Gets or sets the global session attributes.

public static SessionOverride GlobalOverride { get; set; }

Property Value

SessionOverride

IsDoingThread

public static bool IsDoingThread { get; }

Property Value

bool

IsHistoryMerge

public virtual bool IsHistoryMerge { get; }

Property Value

bool

MarkStatus

Gets the mark status.

public virtual HistroyMarkStatus MarkStatus { get; }

Property Value

HistroyMarkStatus

Name

Gets the operation name.

public abstract string Name { get; }

Property Value

string

Override

protected SessionOverride Override { get; set; }

Property Value

SessionOverride

Parameter

protected object Parameter { get; }

Property Value

object

public bool PostExecuteClearTemporaryLinkContainer { get; set; }

Property Value

bool

SimStatus

public static SimulationStatus SimStatus { get; set; }

Property Value

SimulationStatus

public bool SkipClearTemporaryLinkContainer { get; set; }

Property Value

bool

SkipEndOperation

public bool SkipEndOperation { get; set; }

Property Value

bool

Status

Gets or sets the operation status.

public static OperationStatus Status { get; set; }

Property Value

OperationStatus

UseMacro

public virtual bool UseMacro { get; }

Property Value

bool

UseThread

Gets a value indicating whether operation use the thread.

public virtual bool UseThread { get; }

Property Value

bool

View

protected View View { get; }

Property Value

View

autoEvents

Gets or sets the event notifier from the waiting thread.

public static AutoResetEvent[] autoEvents { get; set; }

Property Value

AutoResetEvent[]

Methods

ClearCurrentMark(string)

protected void ClearCurrentMark(string strFilePath)

Parameters

strFilePath string

ClearCurrentMark(IDocument)

protected void ClearCurrentMark(IDocument doc)

Parameters

doc IDocument

ClearCurrentMark()

protected void ClearCurrentMark()

Create(string, View, object)

Create the operation.

public static OperationBase Create(string strType, View view, object obParam)

Parameters

strType string

The operation name.

view View

The operation parameter that is to represent the view.

obParam object

The operation parameter.

Returns

OperationBase

Create(string, IDocument, object)

Create the operation.

public static OperationBase Create(string strType, IDocument doc, object obParam)

Parameters

strType string

The operation name.

doc IDocument

The operation parameter that is to represent the document.

obParam object

The operation parameter.

Returns

OperationBase

Create(string, object)

Create the operation.

public static OperationBase Create(string strType, object obParam)

Parameters

strType string

The operation name.

obParam object

The operation parameter.

Returns

OperationBase

Create(string)

Create the operation.

public static OperationBase Create(string strType)

Parameters

strType string

The operation name.

Returns

OperationBase

Execute()

Execute the operation.

public abstract void Execute()

GetInformation(XmlWriter)

public virtual void GetInformation(XmlWriter writer)

Parameters

writer XmlWriter

Initialize(ShowVerifyResult)

Initialize delegate.

public static void Initialize(OperationBase.ShowVerifyResult delShowVerifyResult)

Parameters

delShowVerifyResult OperationBase.ShowVerifyResult

The ShowVerifyResult delegate.

PostExecute()

PostExecute the operation.

public virtual void PostExecute()

RecordJournal(OperationBase)

public static void RecordJournal(OperationBase op)

Parameters

op OperationBase

StartSession()

Start the operation session, asynchronous calls.

public virtual void StartSession()

StartSession(OperationBase, PostOperation)

Start the operation session, asynchronous calls.

public static void StartSession(OperationBase opSession, OperationBase.PostOperation opPost)

Parameters

opSession OperationBase

The operation.

opPost OperationBase.PostOperation

The post operation,

StartSession(OperationBase)

Start the operation session, asynchronous calls

public static void StartSession(OperationBase opSession)

Parameters

opSession OperationBase

The operation.

StartSessionAndWait()

Start the operation session and wait until operation return.

public virtual void StartSessionAndWait()

StartSessionAndWait(OperationBase, PostOperation)

Start the operation session and wait until operation return.

public static void StartSessionAndWait(OperationBase opSession, OperationBase.PostOperation opPost)

Parameters

opSession OperationBase

The operation.

opPost OperationBase.PostOperation

The post operation,

StartSessionAndWait(OperationBase)

Start the operation session and wait until operation return.

public static void StartSessionAndWait(OperationBase opSession)

Parameters

opSession OperationBase

The operation.

UseSession(string)

Use session object to execute operation

public static ISession UseSession(string strSessionName)

Parameters

strSessionName string

the name of the session

Returns

ISession

raise_OnEndOperation(object, EventArgs)

protected static void raise_OnEndOperation(object value0, EventArgs value1)

Parameters

value0 object

value1 EventArgs

raise_OnOperationStatusChanged(object, OperationStatusEventArgs)

protected static void raise_OnOperationStatusChanged(object value0, OperationStatusEventArgs value1)

Parameters

value0 object

value1 OperationStatusEventArgs

OnEndOperation

public static event OperationBase.EndOperation OnEndOperation

Event Type

OperationBase.EndOperation

OnOperationStatusChanged

Occurs when [On Operation Status Changed].

public static event EventHandler<operationstatuseventargs> OnOperationStatusChanged

Event Type

EventHandlerOperationStatusEventArgs&gt;

Connect with Ansys