Difference between revisions of "SetParameters"
Line 1: | Line 1: | ||
[[Category:Resource_Functions]] | [[Category:Resource_Functions]] | ||
− | | + | {{HelpFiles}} |
====setParameters==== | ====setParameters==== |
Latest revision as of 04:03, 14 December 2011
setParameters
Sets the parameters of a resource.
Syntax
setParameters(resourceUniqueId, parameters_options)
Arguments
resourceUniqueId: Is a numeric (non-decimal) expression. It is the UniqueId of a resource.
parameters_options: Is an array whose items are the ids of the last chosen parameter options of a parameter family
Return type
empty
Examples
/* set parameters for a resource having UniqueId = 123456
This resource has 3 parameters whose corresponding options’ ids are 1, 12 and 25
*/
setParameters(123456, {1, 12, 25});
Availability
Version 4.8