Next: Variables Up: The Language Previous: Functions

### Constants

For makro programming the system offers some constant values, which are listed below.

In addition function withour input parameters are listed in the SISCAD-P calculator under constants.

- Color constants :

             BLACK            1
             LIGHTGREY        2
             GREY             3
             DARKGREY         4
             LIGHTRED         5
             RED              6
             DARKRED          7
             LIGHTVIOLET      8
             VIOLET           9
             DARKVIOLET      10
             LIGHTGREEN      11
             GREEN           12
             DARKGREEN       13
             LIGHTBLUE       14
             BLUE            15
             DARKBLUE        16
             LIGHTYELLOW     17
             YELLOW          18
             DARKYELLOW      19
             WHITE           20

- Other number constants :

             EXP1            2.71828
             PI              3.141592645

- The constant STOP :

  If a formula is calculated during a manipulation, the result of which is the constant STOP, the manipulation is broken off with an error message.

  e.g.:

             CREATE VARIABLE N
                IF (([VAR]VALUE1 + [VAR]VALUE2 > 100); STOP ; 1 );ABORT1 !

  For each manipulation it is checked whether the sum of the values of the two lengths is greater than 100. If this is the case, the manipulation is denied.

- Functions without input parameters :

  IDENTLC : Number of the last element created.

  The function delivers the number of the object that has been created last under the previous commands.

  IDPTOP : Number of the upper part.

  The function delivers the number of the upper part in the parts hierarchy.