Toggle menu
862
3.8K
30.2K
279.1K
Catglobe Wiki
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SetParameters: Difference between revisions

From Catglobe Wiki
Cg_pham (talk | contribs)
No edit summary
Cg_pham (talk | contribs)
No edit summary
 
Line 1: Line 1:
[[Category:Resource_Functions]]
[[Category:Resource_Functions]]

{{HelpFiles}}


====setParameters====
====setParameters====

Latest revision as of 03: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