> ## 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 AppHandle

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

This class is to represent the application handler.

```csharp theme={null}
public class AppHandle : IAppHandle
```

#### Inheritance

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

#### Implements

IAppHandle

#### 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

### AppHandle()

Initializes a new instance of the [AppHandle](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Dialog.AppHandle.md) class.

```csharp theme={null}
public AppHandle()
```

## Methods

### Activate(List\<UIntPtr>, bool)

```csharp theme={null}
public virtual void Activate(List<UIntPtr> lstObj, bool isActive)
```

#### Parameters

`lstObj` List\<UIntPtr>

`isActive` bool

### Activate(UIntPtr, bool)

Activate.Usually, highlight.

```csharp theme={null}
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.

```csharp theme={null}
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.

```csharp theme={null}
public virtual void ActivateFromExternWithoutReset(UIntPtr obj, bool isActive)
```

#### Parameters

`obj` UIntPtr

The tag of activate.

`isActive` bool

The Activate flag.

### ActivateWithoutReset(List\<UIntPtr>, bool)

```csharp theme={null}
public virtual void ActivateWithoutReset(List<UIntPtr> lstObj, bool isActive)
```

#### Parameters

`lstObj` List\<UIntPtr>

`isActive` bool

### ActivateWithoutReset(UIntPtr, bool)

Activate.Usually, highlight.

```csharp theme={null}
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.

```csharp theme={null}
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`.

### DeleteObject(UIntPtr, bool)

Object is delete.

```csharp theme={null}
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`.

### DistanceBetween2Points(UIntPtr, UIntPtr)

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

```csharp theme={null}
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.

### FindInActiveModel(string)

Gets tag in activate model.

```csharp theme={null}
public virtual UIntPtr FindInActiveModel(string strObjName)
```

#### Parameters

`strObjName` string

Find name of object.

#### Returns

UIntPtr

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

### GetDefaultName(string)

Gets default name

```csharp theme={null}
public virtual string GetDefaultName(string strHead)
```

#### Parameters

`strHead` string

prefix of name

#### Returns

string

The name

### IsValidName(string, UIntPtr, UIntPtr)

Duplicated Name Check for object int specific container

```csharp theme={null}
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

### RegisterStrDialogResult(int, XmlDocument)

Data of dialog

```csharp theme={null}
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.

```csharp theme={null}
public virtual void SetMultiDeleteObject(bool bMulti)
```

#### Parameters

`bMulti` bool

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

### StartOperation(string, UIntPtr, string)

Execute operation.

```csharp theme={null}
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.

```csharp theme={null}
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.

```csharp theme={null}
public virtual void StartOperation(string strOpName, string strOpInfo)
```

#### Parameters

`strOpName` string

The name of operation.

`strOpInfo` string

Additional information.

### StartOperation(string)

Execute operation.

```csharp theme={null}
public virtual void StartOperation(string strOpName)
```

#### Parameters

`strOpName` string

The name of operation.

### UpdateDisplay()

Update display.

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