Applying a Layer Map

A layer map is a CSV file containing several lines (rows). Each row contains the following data, organized in comma-separated columns:

input_layer,output_layer,comment,color,visibility,elevation,material,extrude,stack,thickness

The CSV file doesn't have a header row.

The columns are as follows:

  1. input_layer (string): layer name or number of imported file format.
  2. output_layer (string): layer name or number of exported file format.
  3. comment (string): comment to apply to exported layer (*).
  4. color (color): color to apply to exported layer (*).
  5. visibility (bool): selects if layer will be exported
  6. elevation (real [pm]): location of bottom z-value of exported layer (*)
  7. material (integer): number identifying the layer material (*)
  8. extrude (bool): selects if layer is extruded or not (*)
  9. stack (bool): selects if layer stacked above layer below. Mutually exclusive with specifying elevation.
  10. thickness (real [pm]): layer thickness

The data types are:

  • string: A string value, with of without quotes (“). Quotes are mandatory if the string contains a comma (,).
  • bool: a true/false value, either expressed as 1/0, true/false or on/off
  • real: a real value (eg. 1.2344)
  • integer: an integer value (eg. 1234)
  • color: a color identifier, either as a hex RGBA value written as #rrggbbaa (eg. #101f3bff) or a well-known color name (see color names).

Note that elevation and thickness are always expressed in picometers [pm].

The layer can be either loaded in the GUI, or from the command line, as follows:

-LcApplyLayerMap=true -LcLayerMap=“LayerMap.csv”

Example layer map:

1,,,Blue,true,,,false,true,10000000000
2,,,Yellow,true,,,false,true,5000000000
3,,,Magenta,true,,,false,true,5000000000
4,,,Cyan,true,,,false,true,5000000000
5,,,#ffc00,true,,,false,true,5000000000
6,,,#ff00c,true,,,false,true,10000000000