Execute and sendExpression do not give the same result for getComponentModifierValue
When I run the command:
omc.sendExpression("getComponentModifierValue(iPSL.Examples.DevelopmentExamples.Electrical.Machines.PSSE.GENROE,pwLine.X)")
I get a parse exception but when I run
omc.execute("getComponentModifierValue(iPSL.Examples.DevelopmentExamples.Electrical.Machines.PSSE.GENROE,pwLine.X)")
I get the desired output.
They are not supposed to give the same result. omc.execute is the OMPython1 format:
>>> omc.sendExpression("{1,2,3}")
(1, 2, 3)
>>> omc.execute("{1,2,3}")
{'SET1': {'Set1': [1, 2, 3]}}
>>> omc.ask("{1,2,3}",parsed=False)
'{1,2,3}\n'
API functions that are listed under the scripting API will work with sendExpression. Other calls are untyped in the compiler and will not parse using a standard Modelica expression parser.
Ok. Are there any plans to extend supported functions?
No; the only plans are to change the format of old, undocumented functions.
So it will be possible to do sendExpression with getComponentModifierValue?