P&ID Grid Definition File
- Last UpdatedMar 21, 2024
- 1 minute read
The file griddef.xml contains the definition of the gridding for a project. It should be located into your "<Project name>DFLTS\Diagrams\" project directory. If the file for some reason could not be found, the system will try to load it from the "PDMSDFLTS\Diagrams\" location. If there is no file, the system will try to load it from the folder where the application executable file is located. The file in the executable folder should be delivered together with your Diagrams installation. If the file does not get loaded, an error message will be displayed in the console window (the Diagrams application additionally displays this information in the message log.)
The definition file consists of two paths: one for X and one for Y. Both of them contain a series of tags defined by a min/max value and a name value.
Example:
<?xml version="1.0" encoding="utf-8"?>
<GridDef>
<Path type="X">
<Tag>
<Min>20</Min>
<Max>120</Max>
<Name value="1"/>
</Tag>
<Tag>
<Min>120</Min>
<Max>220</Max>
<Name value="2"/>
</Tag>
…
…
…
<Path type="Y">
<Tag>
<Min>10</Min>
<Max>110</Max>
<Name value="A"/>
</Tag>
<Tag>
<Min>110</Min>
<Max>210</Max>
<Name value="B"/>
</Tag>
…
…
…
</Path>
</GridDef>
