The mandatory label must be in the configuration files and they are always called. The optional labels are each controlled by a variable which must have a certain value (set in label 1) in order for the label to be called.
Label 1 (mandatory)
Initialization label in which Eagle environments can be set or changed which influence the Eagle export command. Also the user can set some variables which control certain behavior (filtering, renaming, etc.) in the export process.
Label 1 is executed only once after choosing a configuration or after starting the function to set settings which are valid for all chosen drawings to be exported. So this label is not executed for each drawings.
Label 2 (mandatory)
This label is executed before each chosen drawing just before the Eagle export command is executed. At that moment all expanding of sub models, modifications (fragments, colors, dash patterns, etc. ) and removing of objects has been done.
Label 3 (mandatory)
This label is executed for each drawing chosen to be exported, after the Eagle export command is executed and the DXF/DWG file has been generated. With this macro the generated DXF/DWG file can be renamed, copied, moved etc.
Label PreCheck (optional)
If label 1 contains the setting PreCheckName=TRUE the label PreCheck should exist in the configuration file. It is then executed before the drawing is loaded and thus before label 2 is called.
Only the name of the drawing has been established and the extension of the result (DXF/DWG). If PreCheckName is set to FALSE in the label PreCheck then the drawing is not exported at all. This method can be used to determine which drawing has to be exported and which not. Even a document management system ( PDM ) can be used to determine which of the selected drawing has to be exported and which not.
Label Specialexp (optional)
In case label 1 contains the setting Special_Act with value yes or true the label specialexp should exist in the configuration file. This label is then executed before label 2 is called.
The drawing is loaded but is not yet expanded and thus the drawing still contains all kind of sub models. No filtering or modification has been done yet. Only in case the variable prevbluelines is set to yes in label 1, the drawing has been expanded and some blueline (background lines) drawings have been loaded. This setting is for a special case which is rarely used any more. Mind you, this is not the setting bluelines which can be used more often. So normally no expanding has been done.