Class AppHandle
Last update: 16.07.2025Namespace: VM.Managed.Dialog
Assembly: VMAppCore.dll
This class is to represent the application handler.
public class AppHandle : IAppHandle
Inheritance
Implements
IAppHandle
Extension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)
Constructors
AppHandle()
Initializes a new instance of the
public AppHandle()
Methods
Activate(List<UIntPtr>, bool)
public virtual void Activate(List<UIntPtr> lstObj, bool isActive)
Parameters
isActive bool
Activate(UIntPtr, bool)
Activate.Usually, highlight.
public virtual void Activate(UIntPtr obj, bool isActive)
Parameters
obj UIntPtr
The tag of activate
isActive bool
The Activate flag
ActivateFromExtern(UIntPtr, bool)
Activate.Usually, highlight.
public virtual void ActivateFromExtern(UIntPtr obj, bool isActive)
Parameters
obj UIntPtr
The tag of activate.
isActive bool
The Activate flag.
ActivateFromExternWithoutReset(UIntPtr, bool)
Activate.Usually, highlight.
public virtual void ActivateFromExternWithoutReset(UIntPtr obj, bool isActive)
Parameters
obj UIntPtr
The tag of activate.
isActive bool
The Activate flag.
ActivateWithoutReset(List<UIntPtr>, bool)
public virtual void ActivateWithoutReset(List<UIntPtr> lstObj, bool isActive)
Parameters
isActive bool
ActivateWithoutReset(UIntPtr, bool)
Activate.Usually, highlight.
public virtual void ActivateWithoutReset(UIntPtr obj, bool isActive)
Parameters
obj UIntPtr
The tag of activate
isActive bool
The Activate flag
CalcCoordSys(string, XmlNode, XmlNode)
Coordinate system is calculation to selected object.
public virtual bool CalcCoordSys(string strPickResult, XmlNode nodeBaseCoordSys, XmlNode nodeActionCoordSys)
Parameters
strPickResult string
The result of picking.
nodeBaseCoordSys XmlNode
The base coordinate system.
nodeActionCoordSys XmlNode
The action coordinate system.
Returns
true if success; otherwise, false.
DeleteObject(UIntPtr, bool)
Object is delete.
public virtual bool DeleteObject(UIntPtr obj, bool isFirst)
Parameters
obj UIntPtr
The deleted object.
isFirst bool
true if deleted object is first object; otherwise, false.
Returns
true if success; otherwise, false.
DistanceBetween2Points(UIntPtr, UIntPtr)
Gets the distance about two objects. Usually, distance of start point.
public virtual double DistanceBetween2Points(UIntPtr tagFrom, UIntPtr tagTo)
Parameters
tagFrom UIntPtr
Based on tag of object.
tagTo UIntPtr
Another tag of object.
Returns
The distance about two objects.
FindInActiveModel(string)
Gets tag in activate model.
public virtual UIntPtr FindInActiveModel(string strObjName)
Parameters
strObjName string
Find name of object.
Returns
tag if success; otherwise, zero.
GetDefaultName(string)
Gets default name
public virtual string GetDefaultName(string strHead)
Parameters
strHead string
prefix of name
Returns
The name
IsValidName(string, UIntPtr, UIntPtr)
Duplicated Name Check for object int specific container
public virtual bool IsValidName(string strName, UIntPtr tagContainer, UIntPtr tagObject)
Parameters
strName string
Name for Checking
tagContainer UIntPtr
Tag of the container which contains tagObject if IntPtr.Zero, Current working model will be used.
tagObject UIntPtr
Tag of the object which wnats to set names. if IntPtr.Zero, strName must unique.
Returns
if Duplicated then return false
RegisterStrDialogResult(int, XmlDocument)
Data of dialog
public virtual void RegisterStrDialogResult(int nIDDialog, XmlDocument domResult)
Parameters
nIDDialog int
The ID of dialog.
domResult XmlDocument
The data of dialog.
SetMultiDeleteObject(bool)
Sets the multi delete object.
public virtual void SetMultiDeleteObject(bool bMulti)
Parameters
bMulti bool
true if multi delete object; otherwise, false.
StartOperation(string, UIntPtr, string)
Execute operation.
public virtual void StartOperation(string strOpName, UIntPtr doc, string strOpInfo)
Parameters
strOpName string
The name of operation.
doc UIntPtr
Document point.
strOpInfo string
Additional information.
StartOperation(string, string, bool)
Execute operation.
public virtual void StartOperation(string strOpName, string strOpInfo, bool bHistoryMerge)
Parameters
strOpName string
The name of operation.
strOpInfo string
Additional information.
bHistoryMerge bool
History merge flag.
StartOperation(string, string)
Execute operation.
public virtual void StartOperation(string strOpName, string strOpInfo)
Parameters
strOpName string
The name of operation.
strOpInfo string
Additional information.
StartOperation(string)
Execute operation.
public virtual void StartOperation(string strOpName)
Parameters
strOpName string
The name of operation.
UpdateDisplay()
Update display.
public virtual void UpdateDisplay()