From ReliaWiki
Revision as of 17:53, 17 June 2016 by Kate Racaza (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: SynthesisAPI.cModel

Returns an array of ParamValues objects that represent the parameter name and value pairs of an associated cModel object.






 'Add code to get an existing model or create a new one. 
 Dim AModel As New cModel

 'Get an array of the model's parameters. 
 Dim ModelParameters() As ParamValues
 ModelParameters = AModel.Parameters()

 'Output example: Display the name and value of the first parameter. 
 Dim ParamName As String
 Dim ParamValue As Double
 ParamName = ModelParameters(0).ParamName
 ParamValue = ModelParameters(0).Value
 MsgBox (ParamName & " = " & ParamValue)