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

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

This class is to represent the picker base.

```csharp theme={null}
public abstract class PickerBase
```

#### Inheritance

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

#### Derived

[PickerDirection](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerDirection.md),
[PickerEntityVM](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerEntityVM.md),
[PickerGear](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerGear.md),
[PickerGeneral](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerGeneral.md),
[PickerHole](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerHole.md),
[PickerMesh](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.FE.PickerMesh.md),
[PickerMulti](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerMulti.md),
[PickerOrientation](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerOrientation.md),
[PickerPoint](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerPoint.md),
[PickerSolid](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerSolid.md),
[PickerTopol](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerTopol.md),
[PickerTransform](https://developer.synopsys.com/docs/motion/motion-standalone-preprocessor-c-sharp-library/lib/VM.Managed.Picker.Core.PickerTransform.md)

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

### PickerBase()

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

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

## Properties

### ActiveDocument

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

#### Property Value

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

### IsOnlyResultXml

Gets indicating whether only the xml of picking result.

```csharp theme={null}
protected bool IsOnlyResultXml { get; }
```

#### Property Value

bool

### IsReference

Gets or sets the picking result indicating whether it is reference.

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

#### Property Value

bool

### Result

Gets or sets the object of picking result.

```csharp theme={null}
public virtual object Result { get; protected set; }
```

#### Property Value

object

### ResultXml

Gets or sets the xml of picking result.
\------- caution 1 -------
The case of Point and Direction create the Point and Direction object through deserialize of result xml.
But, The case of EntityVM sets the existed object.
\------- caution 2 -------
The case of EntityVM execute filering in this function.
If the filtering result is false or the picking result invalidate , throw the exception.
\------- caution 3 -------
Defined rule can changed through added picker.

```csharp theme={null}
public string ResultXml { get; set; }
```

#### Property Value

string

### SymmetricType

Gets or sets the symmetric type.

```csharp theme={null}
public Enum SymmetricType { get; set; }
```

#### Property Value

Enum

## Methods

### Abort()

Picker is forced stop the flag is set.

```csharp theme={null}
public void Abort()
```

### Filtering(UIntPtr)

Filtering to not proper object.

```csharp theme={null}
public virtual bool Filtering(UIntPtr pTarget)
```

#### Parameters

`pTarget` UIntPtr

Filtering target.

#### Returns

bool

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

### FilteringAnother(UIntPtr)

Filtering to not proper object about special target.

```csharp theme={null}
public virtual bool FilteringAnother(UIntPtr pTarget)
```

#### Parameters

`pTarget` UIntPtr

Filtering target.

#### Returns

bool

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

### FilteringReference(UIntPtr, UIntPtr)

Filtering to not proper object about special target into owner.

```csharp theme={null}
public virtual bool FilteringReference(UIntPtr pOwner, UIntPtr pTarget)
```

#### Parameters

`pOwner` UIntPtr

Filtering owner of target.

`pTarget` UIntPtr

Filtering target.

#### Returns

bool

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

### FilteringVMPID(\_VM\_ID)

Filtering to not proper object.

```csharp theme={null}
public virtual bool FilteringVMPID(_VM_ID nVMPID)
```

#### Parameters

`nVMPID` \_VM\_ID

Filtering target PID.

#### Returns

bool

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

### GetAdjacentPatch(double, List\<int>)

```csharp theme={null}
public virtual void GetAdjacentPatch(double dAngle, List<int> lstNode)
```

#### Parameters

`dAngle` double

`lstNode` List\<int>

### GetChangeNoneParametricXml(string)

Change to the result of parametric to the result of none parametric.

```csharp theme={null}
public virtual string GetChangeNoneParametricXml(string strXml)
```

#### Parameters

`strXml` string

Result of parametric.

#### Returns

string

The result xml of none parametric.

### GetPickerInfo()

Gets information of picking type.

```csharp theme={null}
public abstract string GetPickerInfo()
```

#### Returns

string

### GetResultXmlFromKey(UIntPtr)

Get valid result xml according to picker key of core.

```csharp theme={null}
public virtual string GetResultXmlFromKey(UIntPtr key)
```

#### Parameters

`key` UIntPtr

Picking destination key.

#### Returns

string

The valid result xml.

### GetValidResultXml(string)

Get valid result xml according to picker type of core.

```csharp theme={null}
public virtual string GetValidResultXml(string strDesireXml)
```

#### Parameters

`strDesireXml` string

Invalid result xml.

#### Returns

string

The valid result xml.

### Highlight(bool)

Picking highlight to filtered target.

```csharp theme={null}
public virtual void Highlight(bool bHighlight)
```

#### Parameters

`bHighlight` bool

If set to `ture` is highlight; otherwise, `false` isn't highlight.

### Pick(bool)

This method execute picking.
Define the information of picking thread.
If picking thread is forced stop, picking is a failure.

```csharp theme={null}
public bool Pick(bool bGetXmlOnly)
```

#### Parameters

`bGetXmlOnly` bool

If set to `true` set result xml; otherwise, If set to `false` set result object.

#### Returns

bool

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

### PickWithStartSignal(bool, ManualResetEvent)

This method execute picking with start signal of sub-picking.
Define the information of picking thread.
If picking thread is forced stop, picking is a failure.

```csharp theme={null}
public bool PickWithStartSignal(bool bGetXmlOnly, ManualResetEvent eventPickStart)
```

#### Parameters

`bGetXmlOnly` bool

If set to `true` set result xml; otherwise, If set to `false` set result object.

`eventPickStart` ManualResetEvent

picking start signal.

#### Returns

bool

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

### SetResultImpl(ref string, bool)

Sets the result for picking.

```csharp theme={null}
protected abstract bool SetResultImpl(ref string strXml, bool bXmlOnly)
```

#### Parameters

`strXml` string

The picked data.

`bXmlOnly` bool

If it is true, skip the result setting.

#### Returns

bool

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

### UpdateDisplay()

Update display.

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

### UseEntityFiltering()

```csharp theme={null}
public virtual bool UseEntityFiltering()
```

#### Returns

bool

### raise\_CustomFilterEvent(object, FilterArgs)

```csharp theme={null}
protected void raise_CustomFilterEvent(object value0, FilterArgs value1)
```

#### Parameters

`value0` object

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

### CustomFilterEvent

```csharp theme={null}
public event EventHandler<FilterArgs> CustomFilterEvent
```

#### Event Type

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