"writeToFile"

This attribute allows to save a panel.

Synopsis

this.writeToFile(string fileName, string format);

Parameter

Parameter Description
fileName Name of the panels including the relative path (starting from <proj_path>/panels/) where the panel shall be saved.
format

Defines which format shall be used to save the panel.

  • PNL

  • XML

Using an empty string indicates that the default panel format of the project is used, defaultPanelFormat.

Description

This attribute allows to save a panel.

Consider that object properties are not stored within the panel if "writeToFile" is used. They must be set using corresponding public functions in the "initialize" script of the object.´

Example

main()
{
  this.writeToFile("examples/test", "XML");
}

Assignment

Panel