PML support for PDMS

Programmable Macro Language (PML) support can be enabled for PDMS by adding PDMS Outfitting PML to the list of the 3D model formats that the Hull Server generates. This is done in System Management > Extra > Hull Server > 3D-Models > Settings > Output Format.

Prerequisites

Two files are needed in the project's norms to properly generate the PML files:

  • A file defining the tree levels in the PML files. See PML tree levels below for details.

  • A conversion table mapping the CADMATIC profile type numbers to PDMS profile names. See Profile conversion table below for details.

PML tree levels

The tree levels in the PML files are defined in the pml_hierarchy.cfg file which must be located in the project's norms, in the norms\cvar\outfitting folder.

Any field present in the logistical layout of the project and usual keywords like object, projectname, blockgroup, blocknumber, blockname can be used. Also literal strings and environment variables can be used.

For example:

lvl1 blockgroup

lvl2 blockname

lvl3 panel

lvl4 subpanel

The maximum number of levels is 16.

Profile conversion table

The profile conversion table maps CADMATIC Hull profile type numbers to PDMS profile names. The conversion table is defined in the pml_prf_type.cfg file which must be located in the project's norms, in the norms\cvar\outfitting folder.

All the profile types used in the Hull project must be mapped for the profiles to show up in PDMS.

The first (left) column in the file contains the CADMATIC Hull profile type number, and he second (right) column contains the profile name that PDMS uses.

For reference on the profile numbers and abbreviations used in CADMATIC Hull, see the table below. The profile type numbers that must be used in the conversion table are shown in the rightmost column.