openmodelicainterest  

RE: get modifier names or parameters of component

Peter Fritzson
Fri, 15 Jan 2010 00:01:42 -0800

See Below,
 
Peter F

  _____  

From: owner-openmodelicainter...@ida.liu.se
[mailto:owner-openmodelicainter...@ida.liu.se] On Behalf Of Filomaphitskay
Aleksei
Sent: den 14 januari 2010 19:51
To: OpenModelicaInterest@ida.liu.se
Subject: get modifier names or parameters of component


Hellow, everyone! 

My English is very bad and i have just started knowing with OpenModelica,
therefore don't beat me ).

I need to make a program with GUI (like Dymola). and i need to make window
with dialog, where user can change value of parameters of components. 
 
- Use simForge, which has such capabilities
 
So, I need to get access to parameters of smth. components. More precisely,
can i get a list of possible parameters (for example, Resistor has min, max,
start, stateSelect) using OMC API? 
 
- Yes you can. Look in the system documentation and the OpenModelica
directory testmodels,
ModelQueryAPIexamples.onb

Thanks in advance )