Statement Types
- Last UpdatedJan 20, 2023
- 6 minute read
The input language contains the following different statement types:
|
ARC |
The ARC statement defines a 2D arc. The arc can be used as input to the PRESENT and CONTOUR statements. |
|
ASSIGN |
The ASSIGN statement assigns a previously defined variable to another variable which will get the same type as the first one. However, if a 2D or a 3D point has been defined, one of these coordinates can be assigned to a variable with type decimal. |
|
ATTRIBUTE |
The ATTRIBUTE statement is used to put attributes in the object. The attributes contain non-geometrical data and it is possible to store 100 integers, 50 reals and 12 strings. Both attribute numbers and the variables can be addressed with an alias name defined in an alias file assigned to the logical variable SBD_ALIAS. |
|
CALL |
The CALL statement is used to call another macro. The parameter types must match and the parameters can be used for either input or output purposes. There is no limit for the number of levels of submacros. |
|
CHANGEDRAW |
The CHANGEDRAW statement is used to change the appearance of an object, a component or a subcomponent. This can be done either in one view or in all views. |
|
CIRCLE |
The CIRCLE statement defines a 2D circle. The circle can be used as input to the PRESENT statement. |
|
COLOUR |
The COLOUR statement sets the modal colour. Default colour is green. If the given colour is an empty string, the background colour will be used. |
|
CONE |
The CONE statement defines a 3D cone. The cone can be used as input to the PRESENT statement. |
|
CONNECTIONPOINT |
The CONNECTIONPOINT statement defines a 3D connection point. The connection point can be used as input to the PRESENT statement. |
|
CONTOUR |
The CONTOUR statement defines a 2D contour. The contour can be used as input to the GENERALCYLINDER and PRESENT statements. |
|
CURRENT |
The CURRENT statement makes it possible to structure a drawing or a volume. |
|
CYLINDER |
The CYLINDER statement defines a 3D cylinder. The cylinder can be used as input to the PRESENT statement. |
|
DECLARE |
The DECLARE statement allows the user to specify the type of any variable. The default type is DECIMAL. The DECLARE statements must be given directly after the MACRO statement. |
|
DELAY |
The DELAY statement makes it possible to introduce a delay in a macro. It has only an effect when geometry is presented at a workstation. |
|
DISTANCE |
The DISTANCE statement assigns a value or a previously defined variable to another variable. The value is scaled with the current scale. |
|
DRAWING_NAME |
The DRAWING_NAME statement assigns the name of the current drawing to it's parameter. |
|
ELSE |
The ELSE statement must be used together with the IF statement. If the condition given in the IF statement is not fulfilled, then the statements after the ELSE statement will be executed. |
|
ENDIF |
The ENDIF statement terminates the IF statement. |
|
ENDLOOP |
The ENDLOOP statement terminates the LOOP statement. |
|
ENDMACRO |
The ENDMACRO statement terminates the MACRO statement. |
|
ENDWHILE |
The ENDWHILE statement terminates the WHILE statement. |
|
EXTRACTION |
The EXTRACTION statement makes it possible to use Data Extraction to get any data item of a stored object. This statement is optional. |
|
GENERALCYLINDER |
The GENERALCYLINDER statement defines a 3D general cylinder. The general cylinder can be used as input to the PRESENT statement. |
|
GET |
The GET statement enables the user to get a number of variables which will be used as parameters. |
|
HATCH |
The HATCH statement defines a hatch pattern in a drawing. User defined patterns can be created. The hatch pattern may include islands. The hatch pattern is used as input to the PRESENT statement. |
|
IF |
The IF statement tests an expression and performs a specified action if the result of the test is true. All statements between the IF and ENDIF statements will be executed. If the expression is false, no action will be taken unless the ELSE statement is given. In this case, all statements between the ELSE and ENDIF statements will be executed. All statements except the MACRO and ENDMACRO statements can be given after the IF statement. The IF statements can be nested. |
|
LAYER |
The LAYER statement sets the modal layer. The default layer is 0. The layer can be given either as a number or as an alias if an alias file exists. The aliases should be defined in a file assigned to the logical variable SB_LAYER_ALIAS. In this case, geometry, text and symbols will get the same modal layer. To give them different layer values, it is possible to use layer classes. The classes are defined in a file assigned to the logical variable SBD_LAYER_CLASS. |
|
LINE |
The LINE statement defines a 2D line. The line can be used as input to the CONTOUR and PRESENT statements. |
|
LINETYPE |
The LINETYPE statement sets the modal line type. Default line type is solid. The width can also be changed. Default line width is thin. |
|
LOOP |
The LOOP statement makes it possible to execute the same statements a number of times. All statements except the MACRO and ENDMACRO statements can be given after the LOOP statement. The LOOP statements can be nested. |
|
MACRO |
The MACRO statement must be the first statement in the macro. Parameters may be given and, in that case, they will be given values before the execution of the macro. |
|
NAME |
The NAME statement is used to define a name on the drawing/ subpicture/volume to be created and stored on a data bank. If the statement is omitted, the macro name will be used. It is also possible to give the form to be used, if any. If the form is omitted, a drawing will be created with no form. The scale can also be given for drawings and subpictures. |
|
NOTE |
The NOTE statement defines a note in a drawing. The note is used as input to the PRESENT statement. |
|
PARALLELEPIPED |
The PARALLELEPIPED statement defines a 3D parallelepiped. The parallelepiped can be used as input to the PRESENT statement. |
|
POINT_2D |
The POINT_2D statement defines a 2D point. The point is used as input to several of the other 2D statements. It is also possible to use this statement when any of the coordinates are to be changed. |
|
POINT_3D |
The POINT_3D statement defines a 3D point. The point is used as input to several of the other 3D statements. It is also possible to use this statement when any of the coordinates are to be changed. |
|
POLYGON |
The POLYGON statement defines a 3D polygon. The polygon is used as input to the PRESENT statement. |
|
PRESENT |
The PRESENT statement presents the geometry created by the macro. |
|
PUT |
The PUT statement makes it possible to print any variable data. |
|
RANGE |
The RANGE statement defines a range of variables. The range is used in the EXTRACTION and the LOOP statements. |
|
ROTATIONAL |
The ROTATIONAL statement defines a 3D rotational primitive. The rotational primitive is used as input to the PRESENT statement. |
|
SPHERESEG |
The SPHERESEG statement defines a 3D spherical segment. The segment is used as input to the PRESENT statement. |
|
SPLINE |
The SPLINE statement defines a 2D spline. The spline is used as input to the CONTOUR and PRESENT statements. |
|
SPLIT |
The SPLIT statement splits a model name into project, module and subsystems. These items can then be used in the EXTRACT statement. |
|
SYMBOL |
The SYMBOL statement defines a symbol. The symbol is used as input to the PRESENT statement. |
|
TABLE |
The TABLE statement makes it possible to present a number of variables with a format determined by the user. The table is used in the PRESENT statement. |
|
TEXT |
The TEXT statement defines a text. The text is used as input to the PRESENT statement. |
|
TEXTFILE |
The TEXTFILE statement defines a text file. The text file is used as input to the PRESENT statement. |
|
TOROID |
The TOROID statement defines a 3D toroid. The toroid is used as input to the PRESENT statement. |
|
VECTOR_2D |
The VECTOR_2D statement defines a 2D vector. The vector is used as input to other 2D statements. It is also possible to use this statement when any of the coordinates shall be changed. |
|
VECTOR_3D |
The VECTOR_3D statement defines a 3D vector. The vector is used as input to several of the other 3D statements. It is also possible to use this statement when any of the coordinates are to be changed. |
|
VMSJOB |
The VMSJOB statement is used to execute a job code or command VMS-file. |
|
WHILE |
The WHILE statement makes it possible to execute the same statements a number of times. The WHILE statement tests an expression and performs a specified action as long as the result of the test is true. All statements between the WHILE and ENDWHILE statements will be executed. If the expression is false, no action will be taken. All statements except the MACRO and ENDMACRO statements can be given after the WHILE statement. The WHILE statements can be nested. |