Environment of Cutout Macros
- Last UpdatedFeb 01, 2023
- 2 minute read
Geometry macros for cutouts are handled just like all other geometry macros. When a cutout macro has been defined, it has to be pre-interpreted before it can be called from the AVEVA Marine system. This may be done using the geomac command (cf. User’s Guide Basic). The location of the source, list and resulting binary files are controlled by three environment variables:
SBB_GEO_MACRO_SRC
SBB_GEO_MACRO_LST
SBB_GEO_MACRO_BIN
Make sure that these variables have an appropriate definition and then issue the command "geomac" to perform the interpretation. Observe that the command does not run but only performs an interpretation of the macro. Below you find an example of the user dialog when interpreting a macro (the prompt is >).
|
> geomac |
||
|
|
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 <RET> |
||
|
Give name of macro to be run: cutout_1.gml <RET> |
||
|
Give parameter NO_OF_PROFPARAMS (INTEGER): <RET> |
||
|
Once more ?: <RET> |
||
|
Give name of macro to be run: <RET> |
||
|
> |
||
Observe that giving the name of the macro including the file extension .gml instructs the geomac system to interpret this file instead of simply running an already pre-interpreted macro.
If interpretation warnings are issued, these will be found in the file cutout_1.lst located in the directory given by the definition of SBB_GEO_MACRO_LST. If the interpretation was successful, the file cutout_1.glb will be present in the directory given by the definition of SBB_GEO_MACRO_BIN.
See to it that any required auxiliary macros, called from this macro, are compiled in the same way.