Type macro
The type[number] file specifies the shape of the end type or cutout (norm).
The type[number].cmd file contains the necessary questions for these shapes and establishes the link with the database. The type[number].cmd file consists at least four sections that begin with a label number. But in cases more labels are requested. In all cases each label have to end with an 'exit' statement. See Type macro example for more information.
Label 1
Label 1 contains the questions to be asked and, if applicable, the default answers. Any additional options can also be specified here.
Label 2
Label 2 is not mandatory. It is only required if Label 1 specifies that the values entered by the user should not be checked by CADMATIC Hull but by this macro. However, CADMATIC Hull does offer several additional macros that simplify the checking of the data that the user enters.
Label 2 is also required if the input does not need to be entered by the user but will, for example, be calculated by the macro itself.
Label 3
Label 3 specifies the variable string that will be created from the answers entered by the user. This string will be used to send the R variables to the Hull database.
See Prepare for database.
Also in Label 3, the default is often overwritten with the last answer given, so that this answer will become the future default.
See .Fix combination between the two end types.
Label 4
Label 4 specifies the default dimensions for construction item icons in various CADMATIC Hull functions, for example the creation and modification functions.
It is recommended to specify extreme values for the defaults, so that the details of the item remain clearly visible in the relatively small icon. For the profile end types, a letter or number can be included in the icon. The letters or numbers are fetched from the T type line of the type file, and not from the type macro.
Answers to any questions that may have been asked are also given in this label. These are only used for the creation of the icon.
See Icon information.
Label 5
Label 5 is only used in cutout and lug type macros. Depending on the height and width of the profile type, the variables that define the shape of the cutout are stored in a string variable that serves as input for the Hull database.
Label 6
In a profile end type macro, Label 6 defines the default third and fourth end type. This definition will be used if the user does not select the third or fourth end type when creating the profile.
See Third and fourth end type.
In a cutout or lug type macro, Label 6 defines the default lug type for a cutout type, or the default cutout type for a lug type.