bdeGetSimulationObjectModelResource

Gets filepath of the source of the diagram that is used for the simulation.

Syntax

simObjectResource = bdeGetSimulationObjectModelResource(simObject)

Inputs

simObject
The simulation object to get the resource of.
Type: hwscpSimulation

Outputs

simObjectResource
The filepath of the source of the diagram that is used for the simulation.
Type: string

Examples

Get the source of the diagram that is used for a simulation:

          diagram = bdeGetCurrentDiagram();
          simObject = bdeGetSimulationObject(diagram);
          simObjectResource = bdeGetSimulationObjectModelResource(simObject);
        

          
            simObjectResource = C:/Program Files/Altair/2021.2/Activate2021.2/hwx/databases/activate/system/Activate/_demos/Control/Controller.scm