> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class OperationBase

Namespace: [VM.Managed.Operation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation)\
Assembly: VMAppCore.dll

This base class is to represent the operation.

```csharp theme={null}
public abstract class OperationBase : IOperation
```

#### Inheritance

object ←
[OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md)

#### Derived

[ApplyOperation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.ApplyOperation.md),
[BuildBodyOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.BuildBodyOp.md),
[CADBodyApplyOperation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.CADBodyApplyOperation.md),
[CheckValidationAboutBuildOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.CheckValidationAboutBuildOp.md),
[CreateSubEntityOperation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Dialog.CreateSubEntityOperation.md),
[DeleteBuilderOperation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.DeleteBuilderOperation.md),
[GetAreaOfFaceOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetAreaOfFaceOp.md),
[GetBodyFacesOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetBodyFacesOp.md),
[GetBodyNameAttributeOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetBodyNameAttributeOp.md),
[GetBoundingBoxOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetBoundingBoxOp.md),
[GetDefaultMaxPenetrationOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetDefaultMaxPenetrationOp.md),
[GetFacetInformationForFaceOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetFacetInformationForFaceOp.md),
[GetLengthOfEdgeOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetLengthOfEdgeOp.md),
[GetManyTopologyColorOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetManyTopologyColorOp.md),
[GetPiecewiseCurveOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetPiecewiseCurveOp.md),
[GetPointAndDirectionFromFacetOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetPointAndDirectionFromFacetOp.md),
[GetTopologyColorOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetTopologyColorOp.md),
[GetVoidCountOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetVoidCountOp.md),
[GetVoidPointsOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.GetVoidPointsOp.md),
[OperationDelegate](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationDelegate.md),
[ReDrawForHistoryOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.ReDrawForHistoryOp.md),
[RebuildHiddenDocOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.History.RebuildHiddenDocOp.md),
[RemoveDuplicatedEventOperation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.RemoveDuplicatedEventOperation.md),
[SetNameAttributeOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.SetNameAttributeOp.md),
[SetSelectionObjectOp](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.CAD.SetSelectionObjectOp.md)

#### Implements

IOperation

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_),
[LinkPropertyItemCache.GetLinkedObjects\<T>(object, LinkPropertyType)](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### OperationBase(View, object)

```csharp theme={null}
protected OperationBase(View view, object param)
```

#### Parameters

`view` [View](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.View.md)

`param` object

### OperationBase(View)

```csharp theme={null}
protected OperationBase(View view)
```

#### Parameters

`view` [View](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.View.md)

### OperationBase(Document, object)

```csharp theme={null}
protected OperationBase(Document doc, object param)
```

#### Parameters

`doc` [Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document.md)

`param` object

### OperationBase(Document)

```csharp theme={null}
protected OperationBase(Document doc)
```

#### Parameters

`doc` [Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document.md)

### OperationBase(object)

```csharp theme={null}
protected OperationBase(object param)
```

#### Parameters

`param` object

### OperationBase()

```csharp theme={null}
protected OperationBase()
```

## Fields

### g\_bDupicateMsg

```csharp theme={null}
public static bool g_bDupicateMsg
```

#### Field Value

bool

### g\_bRedrawKernel

```csharp theme={null}
public static bool g_bRedrawKernel
```

#### Field Value

bool

### g\_bSkipAddEvent

```csharp theme={null}
public static bool g_bSkipAddEvent
```

#### Field Value

bool

### g\_bVerify

```csharp theme={null}
public static bool g_bVerify
```

#### Field Value

bool

### m\_bIsHistoryMerge

```csharp theme={null}
protected bool m_bIsHistoryMerge
```

#### Field Value

bool

## Properties

### Document

```csharp theme={null}
protected Document Document { get; }
```

#### Property Value

[Document](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Document.md)

### ExecutableOnHold

```csharp theme={null}
protected virtual bool ExecutableOnHold { get; }
```

#### Property Value

bool

### ExecuteMacro

```csharp theme={null}
public static bool ExecuteMacro { get; set; }
```

#### Property Value

bool

### GlobalOverride

Gets or sets the global session attributes.

```csharp theme={null}
public static SessionOverride GlobalOverride { get; set; }
```

#### Property Value

SessionOverride

### IsDoingThread

```csharp theme={null}
public static bool IsDoingThread { get; }
```

#### Property Value

bool

### IsHistoryMerge

```csharp theme={null}
public virtual bool IsHistoryMerge { get; }
```

#### Property Value

bool

### MarkStatus

Gets the mark status.

```csharp theme={null}
public virtual HistroyMarkStatus MarkStatus { get; }
```

#### Property Value

[HistroyMarkStatus](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.HistroyMarkStatus.md)

### Name

Gets the operation name.

```csharp theme={null}
public abstract string Name { get; }
```

#### Property Value

string

### Override

```csharp theme={null}
protected SessionOverride Override { get; set; }
```

#### Property Value

SessionOverride

### Parameter

```csharp theme={null}
protected object Parameter { get; }
```

#### Property Value

object

### PostExecuteClearTemporaryLinkContainer

```csharp theme={null}
public bool PostExecuteClearTemporaryLinkContainer { get; set; }
```

#### Property Value

bool

### SimStatus

```csharp theme={null}
public static SimulationStatus SimStatus { get; set; }
```

#### Property Value

[SimulationStatus](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.SimulationStatus.md)

### SkipClearTemporaryLinkContainer

```csharp theme={null}
public bool SkipClearTemporaryLinkContainer { get; set; }
```

#### Property Value

bool

### SkipEndOperation

```csharp theme={null}
public bool SkipEndOperation { get; set; }
```

#### Property Value

bool

### Status

Gets or sets the operation status.

```csharp theme={null}
public static OperationStatus Status { get; set; }
```

#### Property Value

[OperationStatus](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationStatus.md)

### UseMacro

```csharp theme={null}
public virtual bool UseMacro { get; }
```

#### Property Value

bool

### UseThread

Gets a value indicating whether operation use the thread.

```csharp theme={null}
public virtual bool UseThread { get; }
```

#### Property Value

bool

### View

```csharp theme={null}
protected View View { get; }
```

#### Property Value

[View](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.View.md)

### autoEvents

Gets or sets the event notifier from the waiting thread.

```csharp theme={null}
public static AutoResetEvent[] autoEvents { get; set; }
```

#### Property Value

AutoResetEvent\[]

## Methods

### ClearCurrentMark(string)

```csharp theme={null}
protected void ClearCurrentMark(string strFilePath)
```

#### Parameters

`strFilePath` string

### ClearCurrentMark(IDocument)

```csharp theme={null}
protected void ClearCurrentMark(IDocument doc)
```

#### Parameters

`doc` IDocument

### ClearCurrentMark()

```csharp theme={null}
protected void ClearCurrentMark()
```

### Create(string, View, object)

Create the operation.

```csharp theme={null}
public static OperationBase Create(string strType, View view, object obParam)
```

#### Parameters

`strType` string

The operation name.

`view` [View](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.View.md)

The operation parameter that is to represent the view.

`obParam` object

The operation parameter.

#### Returns

[OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md)

### Create(string, IDocument, object)

Create the operation.

```csharp theme={null}
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](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md)

### Create(string, object)

Create the operation.

```csharp theme={null}
public static OperationBase Create(string strType, object obParam)
```

#### Parameters

`strType` string

The operation name.

`obParam` object

The operation parameter.

#### Returns

[OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md)

### Create(string)

Create the operation.

```csharp theme={null}
public static OperationBase Create(string strType)
```

#### Parameters

`strType` string

The operation name.

#### Returns

[OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md)

### Execute()

Execute the operation.

```csharp theme={null}
public abstract void Execute()
```

### GetInformation(XmlWriter)

```csharp theme={null}
public virtual void GetInformation(XmlWriter writer)
```

#### Parameters

`writer` XmlWriter

### Initialize(ShowVerifyResult)

Initialize delegate.

```csharp theme={null}
public static void Initialize(OperationBase.ShowVerifyResult delShowVerifyResult)
```

#### Parameters

`delShowVerifyResult` [OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md).[ShowVerifyResult](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.ShowVerifyResult.md)

The ShowVerifyResult delegate.

### PostExecute()

PostExecute the operation.

```csharp theme={null}
public virtual void PostExecute()
```

### RecordJournal(OperationBase)

```csharp theme={null}
public static void RecordJournal(OperationBase op)
```

#### Parameters

`op` [OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md)

### StartSession()

Start the operation session, asynchronous calls.

```csharp theme={null}
public virtual void StartSession()
```

### StartSession(OperationBase, PostOperation)

Start the operation session, asynchronous calls.

```csharp theme={null}
public static void StartSession(OperationBase opSession, OperationBase.PostOperation opPost)
```

#### Parameters

`opSession` [OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md)

The operation.

`opPost` [OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md).[PostOperation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.PostOperation.md)

The post operation,

### StartSession(OperationBase)

Start the operation session, asynchronous calls

```csharp theme={null}
public static void StartSession(OperationBase opSession)
```

#### Parameters

`opSession` [OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md)

The operation.

### StartSessionAndWait()

Start the operation session and wait until operation return.

```csharp theme={null}
public virtual void StartSessionAndWait()
```

### StartSessionAndWait(OperationBase, PostOperation)

Start the operation session and wait until operation return.

```csharp theme={null}
public static void StartSessionAndWait(OperationBase opSession, OperationBase.PostOperation opPost)
```

#### Parameters

`opSession` [OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md)

The operation.

`opPost` [OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md).[PostOperation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.PostOperation.md)

The post operation,

### StartSessionAndWait(OperationBase)

Start the operation session and wait until operation return.

```csharp theme={null}
public static void StartSessionAndWait(OperationBase opSession)
```

#### Parameters

`opSession` [OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md)

The operation.

### UseSession(string)

Use session object to execute operation

```csharp theme={null}
public static ISession UseSession(string strSessionName)
```

#### Parameters

`strSessionName` string

the name of the session

#### Returns

ISession

### raise\_OnEndOperation(object, EventArgs)

```csharp theme={null}
protected static void raise_OnEndOperation(object value0, EventArgs value1)
```

#### Parameters

`value0` object

`value1` EventArgs

### raise\_OnOperationStatusChanged(object, OperationStatusEventArgs)

```csharp theme={null}
protected static void raise_OnOperationStatusChanged(object value0, OperationStatusEventArgs value1)
```

#### Parameters

`value0` object

`value1` [OperationStatusEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationStatusEventArgs.md)

### OnEndOperation

```csharp theme={null}
public static event OperationBase.EndOperation OnEndOperation
```

#### Event Type

[OperationBase](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.md).[EndOperation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationBase.EndOperation.md)

### OnOperationStatusChanged

Occurs when \[On Operation Status Changed].

```csharp theme={null}
public static event EventHandler<OperationStatusEventArgs> OnOperationStatusChanged
```

#### Event Type

EventHandler\<[OperationStatusEventArgs](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Operation.OperationStatusEventArgs.md)>
