setDollarParams()
This CTRL function is used to set the dollar parameters of the graphics reference. Only in the panel for reference configuration in the GEDI!
Synopsis
int setDollarParams(string refName, dyn_string dollars dyn_string
values);
Parameters
Parameter | Description |
---|---|
refName | Sets the name of the reference |
dollars | Sets the $parameter of the reference |
values | Sets the new values for the $parameters |
Return value
-1, 0 for GEDI.
Description
This CTRL function is used to set the dollar parameters of a reference. This function may only be used under Windows (GEDI, reference configuration panel). The reference configuration panel is opened by the script openRefParamPanel.ctl.
Example
Sets the dollar parameters of the graphics reference (by clicking on OK in the reference panel).
main()
{
// Counter
int lines, n;
// Arguments for "setDollarParams()"
string refName;
dyn_string dollars;
dyn_string values;
// Gets the assigned name for the reference
getValue("refNameBox", "text", refName);
// Gets the assigned values for the reference
getValue("tab", "lineCount", lines);
for(n=1; n<=lines; n++)
{
getValue("tab", "cellValueRC", n-1, "dollarParams",
dollars[n]);
getValue("tab", "cellValueRC", n-1, "value", values[n]);
}
setDollarParams(refName, dollars, values);
closeDialog();
}
Assignment
Graphics
Availability
UI