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

Hull and Outfitting

Submacros in a Geometry Macro

  • Last UpdatedDec 04, 2023
  • 1 minute read

It is possible to call another geometry macro (submacro) from any macro. Data is transferred from the macro to the submacro by parameters. These parameters can have any type.

The submacro parameters will be assigned the values of the corresponding macro parameters and the submacro will be run. When the submacro execution is finished the macro parameters will be assigned the values of the corresponding submacro parameters and execution of the macro is continued. See also The Facility of Using Conditional Statements in a Macro.

The macro and the submacro can be the same macro so the resulting macro is recursive. See also The Possibility to Write Recursive Geometry Macros.

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