Skip to main content
Namespace: VM.API.Pre
Assembly: VM.API.Pre.dll
This class implements APIs for scenario class.

Inheritance

object ← SimulationScenarioAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Methods

CreateSimulationScenarioForActivate(SubSystemDocument, Obj, ExpressionValueVariable?, string, Sensor, Obj?, Sign, ScenarioActivateType, Motion)

Create Scenario.

Parameters

document SubSystemDocument The document to create the simulation scenario. target Obj The enable target of the simulation scenario. referenceValue ExpressionValueVariable? The value of the simulation scenario. name string The name of the simulation scenario. sensorType Scenario.Sensor The sensor type of the simulation scenario. function Obj? The function of the simulation scenario. sign Scenario.Sign The sign type of the simulation scenario. eventType ScenarioActivateType The action type of the simulation scenario. subTarget Scenario.Motion The sub target of the simulation scenario.

Returns

Obj The new Scenario object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’, ‘target’ is null. ArgumentException Will be thrown if the type of ‘function’ is not Function. ArgumentException Will be thrown if the type of ‘target’ is not IEnableForSimulationScenario.

CreateSimulationScenarioForBody(SubSystemDocument, Obj, ExpressionValueVariable?, string, Sensor, Obj?, Sign, ScenarioBodyType)

Create Scenario.

Parameters

document SubSystemDocument The document to create the simulation scenario. target Obj The enable target of the simulation scenario. referenceValue ExpressionValueVariable? The value of the simulation scenario. name string The name of the simulation scenario. sensorType Scenario.Sensor The sensor type of the simulation scenario. function Obj? The function of the simulation scenario. sign Scenario.Sign The sign type of the simulation scenario. eventType ScenarioBodyType The action type of the simulation scenario.

Returns

Obj The new Scenario object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’, ‘target’ is null. ArgumentException Will be thrown if the type of ‘function’ is not Function. ArgumentException Will be thrown if the type of ‘target’ is not IBodyAnalysisType or if the type of target’s analysisType is not Rigid.

CreateSimulationScenarioForFile(SubSystemDocument, string, ExpressionValueVariable?, string, Sensor, Obj?, Sign, ScenarioFileType)

Create Scenario.

Parameters

document SubSystemDocument The document to create the simulation scenario. targetFilePath string The ICF file path of the simulation scenario. referenceValue ExpressionValueVariable? The value of the simulation scenario. name string The name of the simulation scenario. sensorType Scenario.Sensor The sensor type of the simulation scenario. function Obj? The function of the simulation scenario. sign Scenario.Sign The sign type of the simulation scenario. eventType ScenarioFileType The action type of the simulation scenario.

Returns

Obj The new Scenario object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. ArgumentException Will be thrown if the type of ‘function’ is not Function.

CreateSimulationScenarioForOutput(SubSystemDocument, ExpressionValueVariable?, ExpressionValueVariable?, string, Sensor, Obj?, Sign, ScenarioOutputType)

Create Scenario.

Parameters

document SubSystemDocument The document to create the simulation scenario. target ExpressionValueVariable? The action value of the simulation scenario. referenceValue ExpressionValueVariable? The value of the simulation scenario. name string The name of the simulation scenario. sensorType Scenario.Sensor The sensor type of the simulation scenario. function Obj? The function of the simulation scenario. sign Scenario.Sign The sign type of the simulation scenario. eventType ScenarioOutputType The action type of the simulation scenario.

Returns

Obj The new Scenario object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. ArgumentException Will be thrown if the type of ‘function’ is not Function.

CreateSimulationScenarioForStop(SubSystemDocument, ExpressionValueVariable?, string, Sensor, Obj?, Sign)

Create Scenario.

Parameters

document SubSystemDocument The document to create the simulation scenario. referenceValue ExpressionValueVariable? The value of the simulation scenario. name string The name of the simulation scenario. sensorType Scenario.Sensor The sensor type of the simulation scenario. function Obj? The function of the simulation scenario. sign Scenario.Sign The sign type of the simulation scenario.

Returns

Obj The new Scenario object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’ is null. ArgumentException Will be thrown if the type of ‘function’ is not Function.