|
||
System Variables
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
SilverScreen system variables are named storage objects that are global to the SilverScreen system. They are useful for communicating between programs. They may also be used to retrieve the results of certain SilverScreen commands (see below).
Three types of system variables are allowed: value, text and XYZ. Value variables are used to hold a single floating point number (double). Text variables are used to hold a text string (char ). XYZ variables are used to hold the location of a point in 3D space. System variables may be accessed via the load_variable function or the sysvar functions. |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Assigning and Unassigning In SilverScreen, system variables are created, destroyed and assigned by using VARIABLE commands.
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
MEASURE Command A number of SilverScreen commands produce results that are assigned to various system variables. The commands that currently produce system variable results all belong in the GEOMETRY MEASURE family. The following table describes the variable created, the SilverScreen command that creates it and the data type of the variable created (the GEOMETRY prefix is not included in the command description):
Here is an example where the MEASURE command is used to measure the area of a polygon:
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|