    

 ## On this page

  

 

 # Class AppHandle

 Last update: 09.03.2026 

<a id="VM_Managed_Dialog_AppHandle"></a>

Namespace: [VM.Managed.Dialog](VM.Managed.Dialog.md)  
Assembly: VMAppCore.dll

This class is to represent the application handler.

```csharp
public class AppHandle : IAppHandle

```

#### Inheritance

object ← [AppHandle](VM.Managed.Dialog.AppHandle.md)

#### Implements

IAppHandle

#### Extension Methods

[LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkProperties_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkPropertiesAndValues_System_Object_VM_Models_Pre_LinkPropertyType_), [LinkPropertyItemCache.GetLinkedObjects&lt;T&gt;(object, LinkPropertyType)](VM.Models.Pre.Cache.LinkPropertyItemCache.md#VM_Models_Pre_Cache_LinkPropertyItemCache_GetLinkedObjects__1_System_Object_VM_Models_Pre_LinkPropertyType_)

## Constructors

### <a id="VM_Managed_Dialog_AppHandle__ctor"></a> AppHandle()

Initializes a new instance of the  class.

```csharp
public AppHandle()

```

## Methods

### <a id="VM_Managed_Dialog_AppHandle_Activate_System_Collections_Generic_List_System_UIntPtr__System_Boolean_"></a> Activate(List&lt;UIntPtr&gt;, bool)

```csharp
public virtual void Activate(List<UIntPtr> lstObj, bool isActive)

```

#### Parameters

`lstObj` List&lt;UIntPtr&gt;

`isActive` bool

### <a id="VM_Managed_Dialog_AppHandle_Activate_System_UIntPtr_System_Boolean_"></a> Activate(UIntPtr, bool)

Activate.Usually, highlight.

```csharp
public virtual void Activate(UIntPtr obj, bool isActive)

```

#### Parameters

`obj` UIntPtr

The tag of activate

`isActive` bool

The Activate flag

### <a id="VM_Managed_Dialog_AppHandle_ActivateFromExtern_System_UIntPtr_System_Boolean_"></a> ActivateFromExtern(UIntPtr, bool)

Activate.Usually, highlight.

```csharp
public virtual void ActivateFromExtern(UIntPtr obj, bool isActive)

```

#### Parameters

`obj` UIntPtr

The tag of activate.

`isActive` bool

The Activate flag.

### <a id="VM_Managed_Dialog_AppHandle_ActivateFromExternWithoutReset_System_UIntPtr_System_Boolean_"></a> ActivateFromExternWithoutReset(UIntPtr, bool)

Activate.Usually, highlight.

```csharp
public virtual void ActivateFromExternWithoutReset(UIntPtr obj, bool isActive)

```

#### Parameters

`obj` UIntPtr

The tag of activate.

`isActive` bool

The Activate flag.

### <a id="VM_Managed_Dialog_AppHandle_ActivateWithoutReset_System_Collections_Generic_List_System_UIntPtr__System_Boolean_"></a> ActivateWithoutReset(List&lt;UIntPtr&gt;, bool)

```csharp
public virtual void ActivateWithoutReset(List<UIntPtr> lstObj, bool isActive)

```

#### Parameters

`lstObj` List&lt;UIntPtr&gt;

`isActive` bool

### <a id="VM_Managed_Dialog_AppHandle_ActivateWithoutReset_System_UIntPtr_System_Boolean_"></a> ActivateWithoutReset(UIntPtr, bool)

Activate.Usually, highlight.

```csharp
public virtual void ActivateWithoutReset(UIntPtr obj, bool isActive)

```

#### Parameters

`obj` UIntPtr

The tag of activate

`isActive` bool

The Activate flag

### <a id="VM_Managed_Dialog_AppHandle_CalcCoordSys_System_String_System_Xml_XmlNode_System_Xml_XmlNode_"></a> CalcCoordSys(string, XmlNode, XmlNode)

Coordinate system is calculation to selected object.

```csharp
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

bool

`true` if success; otherwise, `false`.

### <a id="VM_Managed_Dialog_AppHandle_DeleteObject_System_UIntPtr_System_Boolean_"></a> DeleteObject(UIntPtr, bool)

Object is delete.

```csharp
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

bool

`true` if success; otherwise, `false`.

### <a id="VM_Managed_Dialog_AppHandle_DistanceBetween2Points_System_UIntPtr_System_UIntPtr_"></a> DistanceBetween2Points(UIntPtr, UIntPtr)

Gets the distance about two objects. Usually, distance of start point.

```csharp
public virtual double DistanceBetween2Points(UIntPtr tagFrom, UIntPtr tagTo)

```

#### Parameters

`tagFrom` UIntPtr

Based on tag of object.

`tagTo` UIntPtr

Another tag of object.

#### Returns

double

The distance about two objects.

### <a id="VM_Managed_Dialog_AppHandle_FindInActiveModel_System_String_"></a> FindInActiveModel(string)

Gets tag in activate model.

```csharp
public virtual UIntPtr FindInActiveModel(string strObjName)

```

#### Parameters

`strObjName` string

Find name of object.

#### Returns

UIntPtr

`tag` if success; otherwise, `zero`.

### <a id="VM_Managed_Dialog_AppHandle_GetDefaultName_System_String_"></a> GetDefaultName(string)

Gets default name

```csharp
public virtual string GetDefaultName(string strHead)

```

#### Parameters

`strHead` string

prefix of name

#### Returns

string

The name

### <a id="VM_Managed_Dialog_AppHandle_IsValidName_System_String_System_UIntPtr_System_UIntPtr_"></a> IsValidName(string, UIntPtr, UIntPtr)

Duplicated Name Check for object int specific container

```csharp
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

bool

if Duplicated then return false

### <a id="VM_Managed_Dialog_AppHandle_RegisterStrDialogResult_System_Int32_System_Xml_XmlDocument_"></a> RegisterStrDialogResult(int, XmlDocument)

Data of dialog

```csharp
public virtual void RegisterStrDialogResult(int nIDDialog, XmlDocument domResult)

```

#### Parameters

`nIDDialog` int

The ID of dialog.

`domResult` XmlDocument

The data of dialog.

### <a id="VM_Managed_Dialog_AppHandle_SetMultiDeleteObject_System_Boolean_"></a> SetMultiDeleteObject(bool)

Sets the multi delete object.

```csharp
public virtual void SetMultiDeleteObject(bool bMulti)

```

#### Parameters

`bMulti` bool

`true` if multi delete object; otherwise, `false`.

### <a id="VM_Managed_Dialog_AppHandle_StartOperation_System_String_System_UIntPtr_System_String_"></a> StartOperation(string, UIntPtr, string)

Execute operation.

```csharp
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.

### <a id="VM_Managed_Dialog_AppHandle_StartOperation_System_String_System_String_System_Boolean_"></a> StartOperation(string, string, bool)

Execute operation.

```csharp
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.

### <a id="VM_Managed_Dialog_AppHandle_StartOperation_System_String_System_String_"></a> StartOperation(string, string)

Execute operation.

```csharp
public virtual void StartOperation(string strOpName, string strOpInfo)

```

#### Parameters

`strOpName` string

The name of operation.

`strOpInfo` string

Additional information.

### <a id="VM_Managed_Dialog_AppHandle_StartOperation_System_String_"></a> StartOperation(string)

Execute operation.

```csharp
public virtual void StartOperation(string strOpName)

```

#### Parameters

`strOpName` string

The name of operation.

### <a id="VM_Managed_Dialog_AppHandle_UpdateDisplay"></a> UpdateDisplay()

Update display.

```csharp
public virtual void UpdateDisplay()

```