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

Inheritance

object ← GearTrainSimulationAPI

Extension Methods

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

Methods

ExportDFG(GearTrainDocument, string)

Export DFS file

Parameters

document GearTrainDocument The GearTrainDocument for exporting DFG file. If null, the active document will be used. targetPath string The file path to export DFG file exclude file extension.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘targetPath’ arguments are empty.

ExportDFS(GearTrainDocument, string)

Export DFS file

Parameters

document GearTrainDocument The GearTrainDocument for exporting DFS file. If null, the active document will be used. targetPath string The file path to export DFS file exclude file extension.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘targetPath’ arguments are empty.

ExportDFSXML(GearTrainDocument, string)

Export DFSXML file

Parameters

document GearTrainDocument The GearTrainDocument for exporting DFSXML file. If null, the active document will be used. targetPath string The file path to export DFSXML file exclude file extension.

Exceptions

ArgumentNullException Will be thrown if ‘document’ or ‘targetPath’ arguments are empty.

RunSimulation(GearTrainDocument, SimulationParameter)

Run simulation.

Parameters

document GearTrainDocument The GearTrainDocument for simulate. If null, the active document will be used. simulationParameter SimulationRun.SimulationParameter The simulation parameter.

Exceptions

ArgumentNullException Will be thrown if ‘document’ argument is empty.