Class OperationBase
Last update: 16.07.2025Namespace: VM.Managed.Operation
Assembly: VMAppCore.dll
This base class is to represent the operation.
public abstract class OperationBase : IOperation
Inheritance
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
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
g_bRedrawKernel
public static bool g_bRedrawKernel
Field Value
g_bSkipAddEvent
public static bool g_bSkipAddEvent
Field Value
g_bVerify
public static bool g_bVerify
Field Value
m_bIsHistoryMerge
protected bool m_bIsHistoryMerge
Field Value
Properties
Document
protected Document Document { get; }
Property Value
ExecutableOnHold
protected virtual bool ExecutableOnHold { get; }
Property Value
ExecuteMacro
public static bool ExecuteMacro { get; set; }
Property Value
GlobalOverride
Gets or sets the global session attributes.
public static SessionOverride GlobalOverride { get; set; }
Property Value
IsDoingThread
public static bool IsDoingThread { get; }
Property Value
IsHistoryMerge
public virtual bool IsHistoryMerge { get; }
Property Value
MarkStatus
Gets the mark status.
public virtual HistroyMarkStatus MarkStatus { get; }
Property Value
Name
Gets the operation name.
public abstract string Name { get; }
Property Value
Override
protected SessionOverride Override { get; set; }
Property Value
Parameter
protected object Parameter { get; }
Property Value
PostExecuteClearTemporaryLinkContainer
public bool PostExecuteClearTemporaryLinkContainer { get; set; }
Property Value
SimStatus
public static SimulationStatus SimStatus { get; set; }
Property Value
SkipClearTemporaryLinkContainer
public bool SkipClearTemporaryLinkContainer { get; set; }
Property Value
SkipEndOperation
public bool SkipEndOperation { get; set; }
Property Value
Status
Gets or sets the operation status.
public static OperationStatus Status { get; set; }
Property Value
UseMacro
public virtual bool UseMacro { get; }
Property Value
UseThread
Gets a value indicating whether operation use the thread.
public virtual bool UseThread { get; }
Property Value
View
protected View View { get; }
Property Value
autoEvents
Gets or sets the event notifier from the waiting thread.
public static AutoResetEvent[] autoEvents { get; set; }
Property Value
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
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
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
Create(string)
Create the operation.
public static OperationBase Create(string strType)
Parameters
strType string
The operation name.
Returns
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
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
OnOperationStatusChanged
Occurs when [On Operation Status Changed].
public static event EventHandler<operationstatuseventargs> OnOperationStatusChanged