The Support of DGN V8 Format
TODO this document needs to be reviewed and updated for SAMO 9/10
LIDS AS can process vector backdrops with DGN V8 files using the ODA Teigha library. If you withh to enable this functionality, please follow the steps below to set up the Teigha library and configure LIDS AS accordingly.
Windows Platform
- Download Teigha binaries from
file:\2_AppServer\J2EE_components\lib\Teigha.Java_4.2.2\vc10_amd64\binto the server machine, e.g.C:\Software\Teigha_4.2.2 - Add the directory with Teigha binaries to the system variable
PATH - Copy LIDS-Teigha libraries
TeighaJavaCore.jar,TeighaJavaDgn.jarandteigha-library-loader-1.1.jarfromfile:\2_AppServer\J2EE_components\lib\Teigha.Java_4.2.2\vc10_amd64\libto Java EE server directory$TOMCAT_DIR/lib - Be sure that appropriate version of Visual C++ Redistributable Package is installed
- Restart the server computer – this point is very important!
Linux Platform
- Download Teigha binaries from
file:\2_AppServer\J2EE_components\lib\Teigha.Java_4.2.2\lnxX64_4.4\binto the server machine, e.g./opt/Teigha_4.2.2 - Set environment variable
LD_LIBRARY_PATHto the directory with Teigha binaries - Copy LIDS-Teigha libraries
TeighaJavaCore.jar,TeighaJavaDgn.jarandteigha-library-loader-1.1.jarfromfile:\2_AppServer\J2EE_components\lib\Teigha.Java_4.2.2\lnxX64_4.4\libto Java EE server directory$TOMCAT_DIR/lib
LIDS AS Configuration
Use ECA property support_dgnV8="true" to ensure the following lines are inserted to the web.xml file:
<listener>
<listener-class>com.berit.lids.service.backdrop.dgn.TeighaImageProvider</listener-class>
</listener>
In config.xml file, at the end of the section advanced/additionalProperties, register which backdrop types will be processed by Teigha image provider:
<advanced>
<additionalProperties>
<property name="spatialAnalysis.columnDbName.fid1" value="FID1"/>
...
<!-- Plug ODA Teigha library to process backdrops with DGN V8 or V7 formats. -->
<ODATeighaLibrary enabled="true">
<backdropType id="bd_detailed_plan_v8"/>
</ODATeighaLibrary>
</additionalProperties>
</advanced>
note
As the Teigha supports DGN V8 and V7 formats, you can also refer to backdrop types containing DGN V7 files.
Limitations
In comparison with the current DGN7 provider, the Teigha image provider doesn't support these features for now:
- Black & White print
- Line styles
- Thickness of lines for displaying
- Thickness of lines for printing defined in
presentation.xmlfile - Raster image instead of vector graphics is used for the print