simetrix.script.getVariable

simetrix.script.getVariable(name: str) GroupVector

Get an existing SIMetrix variable or create a new one if it does not already exist. This can be used to pass data to and from SIMetrix and Python scripts.

See execute() and See runScript() for examples on how to pass data between SIMetrix and Python scripts.