Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Example 6

  • Last UpdatedJan 20, 2023
  • 1 minute read

The macro LAYER shows the layer alias and layer class facilities. Note that a layer can be given as an alias or as a number. The layer class can be given either as the class name or the class number, each preceded by '#'.

MACRO,LAYER;

GET/STRING=('Layer alias : ',LALIAS)

/STRING=('Layer class : ',LCLASS)

/INTEGER=('Layer number: ',LNUMBER);

LAYER,'NOLL';

LAYER,'FORM';

LAYER,1001;

LAYER,'#DRA';

LAYER,'#1';

LAYER,LALIAS;

LAYER,LCLASS;

LAYER,LNUMBER;

ENDMACRO;

The result of a stand alone execution of the macro LAYER is shown below.

Present Geometry Macro:

(0) Exit

(1) Print on terminal

(2) Create 2D geometry and store on DB

(3) Create 3D volume model and store on DB

(4) Create 3D volume model + picture and store on DB

Enter activity : 1

General Component Data Bank not assigned!

Give name of macro to be run: LAYER

Layer alias :

> FORM

Layer class :

> #AAA

Layer number:

> 12

LAYER & ALIAS: 0 ZERO

LAYER & ALIAS: 300 FORM

LAYER & ALIAS: 1001 VIEW1

LAYER CLASS: 10 DRA

LAYER CLASS: 1 PIPE

LAYER & ALIAS: 300 FORM

LAYER CLASS: 11 AAA

LAYER & ALIAS: 12 DOZEN

Once more ? Y

Layer alias :

> FROM

Layer class :

> #DRAW

Layer number:

> 100

LAYER & ALIAS: 0 ZERO

LAYER & ALIAS: 300 FORM

LAYER & ALIAS: 1001 VIEW1

LAYER CLASS: 10 DRA

LAYER CLASS: 1 PIPE

Layer alias FROM not defined. Layer ignored!

Layer class DRAW not found. Layer ignored!

LAYER: 100

Once more ? N

Give name of macro to be run:

Related Links
TitleResults for “How to create a CRG?”Also Available in