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

# Interface TradeStudyPlugIn::ITradeStudyPlugIn3

![][IDL]
![][public]

**Definition**: `ModelCenter/src/InterfaceDLL_TradeStudyPlugIn/TradeStudyPlugIn.odl` (line 479)

COM Instance.

**Inherits from**:

* [TradeStudyPlugIn::ITradeStudyPlugIn2](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-api-md/interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn2.md)

## Members

* [addAnalyzerVariable](#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn3_1a9e044579568a49b3f42c8771ccf8bbc3)
* [addAnalyzerVariable](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-api-md/interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn2.md#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn2_1a614a39c2d8dd38f47d840aa6d5bb34f2)
* [clearAnalyzerVariables](#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn3_1a1a94e6d8431bf19dee3fcf446e781070)
* [construct](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-api-md/interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn2.md#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn2_1ad233e5489d31c81b6b1fe09d9a3a886e)
* [fromString](#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn3_1a541ccb54affa550f0ea2694b39e16c7c)
* [fromString](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-api-md/interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn2.md#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn2_1a3dd50d2ce70b8e0534dd9be60e9bec5c)
* [id](#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn3_1a2c98e62414b0d01303d7a009449f0871)
* [onEnd](#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn3_1afa9a6faf24f730938ea94ba9e846a381)
* [saveAllAnalyzerVariables](#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn3_1a98649448b98aa71aef4adc1e33c47570)
* [show](#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn3_1ac84a2866cfcedd306eeabd757d8c0877)
* [toString](#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn3_1a3f6d767abcf9b50ee14ac7be20ef964a)
* [TradeStudyCallback](#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn3_1a781692e887426951e2913672d9f94a78)

## Properties

### Property TradeStudyCallback

![][public]

**Definition**: `ModelCenter/src/InterfaceDLL_TradeStudyPlugIn/TradeStudyPlugIn.odl` (line 1)

```text theme={null}
LPDISPATCH TradeStudyPlugIn::ITradeStudyPlugIn3::TradeStudyCallback
```

Gets or sets the trade study callback object.

**Return type**: LPDISPATCH

### Property saveAllAnalyzerVariables

![][public]

**Definition**: `ModelCenter/src/InterfaceDLL_TradeStudyPlugIn/TradeStudyPlugIn.odl` (line 1)

```text theme={null}
boolean TradeStudyPlugIn::ITradeStudyPlugIn3::saveAllAnalyzerVariables
```

Gets or sets whether all analyzer variables are saved in the data history when the trade study is run. Only affects variables added using [addAnalyzerVariable()](#interfaceTradeStudyPlugIn_1_1ITradeStudyPlugIn3_1a9e044579568a49b3f42c8771ccf8bbc3), otherwise the global [ModelCenter](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-api-md/namespaceModelCenter) setting is used (as per usual). The default is false.

NOTE: not fully supported in MC 10.2 - you can (and should) set this value as appropriate but setting to true may not have an effect until all of the requisite functionality is added.

**Return type**: boolean

### Property id

![][public]

**Definition**: `ModelCenter/src/InterfaceDLL_TradeStudyPlugIn/TradeStudyPlugIn.odl` (line 515)

```text theme={null}
IDispatch TradeStudyPlugIn::ITradeStudyPlugIn3::id( IDispatch modelCenter, IDispatch addToModel)(IDispatch modelCenter, IDispatch addToModel)
```

Gets or sets the job manager to use.

**Return type**: IDispatch

### Property show

![][public]

**Definition**: `ModelCenter/src/InterfaceDLL_TradeStudyPlugIn/TradeStudyPlugIn.odl` (line 522)

```text theme={null}
boolean TradeStudyPlugIn::ITradeStudyPlugIn3::show
```

Called to display the trade study.

**Returns**:

false always

**Return type**: boolean

### Property toString

![][public]

**Definition**: `ModelCenter/src/InterfaceDLL_TradeStudyPlugIn/TradeStudyPlugIn.odl` (line 529)

```text theme={null}
BSTR TradeStudyPlugIn::ITradeStudyPlugIn3::toString
```

Called to save the state of the plug-in.

**Returns**:

a string containing state information

**Return type**: BSTR

### Property fromString

![][public]

**Definition**: `ModelCenter/src/InterfaceDLL_TradeStudyPlugIn/TradeStudyPlugIn.odl` (line 536)

```text theme={null}
BSTR TradeStudyPlugIn::ITradeStudyPlugIn3::fromString
```

Called to restore the state of a plug-in

**Parameters**:

* **setupString**: the state string

**Return type**: BSTR

### Property onEnd

![][public]

**Definition**: `ModelCenter/src/InterfaceDLL_TradeStudyPlugIn/TradeStudyPlugIn.odl` (line 542)

```text theme={null}
void TradeStudyPlugIn::ITradeStudyPlugIn3::onEnd
```

Called when the plug-in is about to be deleted. Informs the plug-in to do any necessary clean up.

**Return type**: void

### Property addAnalyzerVariable

![][public]

**Definition**: `ModelCenter/src/InterfaceDLL_TradeStudyPlugIn/TradeStudyPlugIn.odl` (line 555)

```text theme={null}
VARIANT TradeStudyPlugIn::ITradeStudyPlugIn3::addAnalyzerVariable( BSTR formula)(BSTR formula)
```

Call to add a variable from an analyzer product. If there are any analyzer variables, the plugin should only accept analyzer variables as trade study parameters.

**Parameters**:

* **formula**: the formula of the variable or expression in the [ModelCenter](https://developer.synopsys.com/docs/modelcenter/modelcenter-apis/modelcenter-api-md/namespaceModelCenter) model
* **analyzerName**: the name of the variable used by the analyzer product; if not specified, the formula is used instead. The plugin should only display and accept aliases.

**Return type**: VARIANT

### Property clearAnalyzerVariables

![][public]

**Definition**: `ModelCenter/src/InterfaceDLL_TradeStudyPlugIn/TradeStudyPlugIn.odl` (line 560)

```text theme={null}
void TradeStudyPlugIn::ITradeStudyPlugIn3::clearAnalyzerVariables
```

Remove all analyzer variables.

**Return type**: void

[IDL]: https://img.shields.io/badge/language-IDL-blue "IDL"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[private]: https://img.shields.io/badge/-private-red "private"
