Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleRequest and response examples
var = {
 "variables":
 {
 "position": 40
 }
}

client.set_variables('23ceff24-28fa-47e4-b29f-b6b60b4b12e3', variables=json.dumps(var))
Note
titleAlternative method to set a single simulation variable

A simplified Set Simulation Variable method can be used when setting a single value, which does not require constructing a JSON.

Panel

client.set_variable(<name>, <value>, <simulation_id> (optional), <context> (optional), <propertyPath> (optional)). 

For example, set_variable(name="mass", value=100, propertyPath = "car.engine").

You can also omit parameter names if the parameters are in the correct sequence, for example, client.set_variable("mass", 100).


Pause simulation

Panel
borderColorlightgrey
borderWidth1
borderStylesolid

client.pause(<simulation_id>)

...