Example Configuration File for HTML
- Last UpdatedJan 24, 2023
- 2 minute read
Here is a complete example configuration file, the file instructs Export-DGN to create a file of commands to display some attributes of valves in the database.
The example output format used is HTML (Hyper Text Mark-up Language). The example shows how the Export-DGN commands can be used to create tables that can be viewed using a browser, such as Internet Explorer.
The configuration commands used are explained later in this section.
Some of the commands do not fit on a single line of this document and have been split. When the user sees a Ê character, this means that the next line of the example is really part of the same original line.
$* Configuration File header to produce html file
ATTRIBUTE_FILE htm
ENCODING UTF8
DGN_FILE yes
ATTRIBUTE_LINKAGE 32768 0
FILE_HEADER |<HTML><HEAD>|
FILE_HEADER |<TITLE>Sample Export-DGN HTML outputþ
</TITLE>|
FILE_HEADER |</HEAD><BODY><H1>AVEVA E3D™ Attributes</H1>|
FILE_FOOTER |</BODY></HTML>|
ELEMENT_HEADER |<TABLE BORDER><CAPTION>þ
Cell %ID1% %ID2%</CAPTION>|
ELEMENT_FOOTER |</TABLE>|
ATTRIBUTE_FORMAT |<TR><TD>%TAG%</TD>þ
<TD>%VALUE%</TD></TR>|
VALV
NAME AS |Valve|
NAME OF BRANCH AS |Branch|
SPREF AS |Specification|
POS
END_VALV
When Export-DGN is run using this configuration file it writes, in addition to the usual .dgn file, a .htm file similar to this:
<HTML><HEAD>
<TITLE>Sample Export-DGN HTML output </TITLE>
</HEAD><BODY><H1>AVEVA Attributes</H1>
<TABLE BORDER><CAPTION>Cell 1 0</CAPTION>
<TR><TD>Valve</TD><TD>/V102</TD></TR>
<TR><TD>Branch</TD><TD>/100-B-1-B1</TD></TR>
<TR><TD>Specification</TD><TD>/A3B/VCW100</TD></TR>
<TR><TD>POS</TD><TD>12490 12280 1836.5</TD></TR>
</TABLE>
<TABLE BORDER><CAPTION>Cell 2 0</CAPTION>
<TR><TD>Valve</TD><TD>/V103</TD></TR>
<TR><TD>Branch</TD><TD>/100-B-1-B1</TD></TR>
<TR><TD>Specification</TD><TD>/A3B/VG100</TD></TR>
<TR><TD>POS</TD><TD>12490 12280 2063.4</TD></TR>
</TABLE>
... More tables omitted ...
</BODY></HTML>
And when this file is viewed with a web-browser it appears similar to this:
