****** README ****** Copyright (C) 2014-2016 OPEN CASCADE This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA See http://www.salome-platform.org or email : webmaster.salome@opencascade.com ============ Introduction ============ This is an implementation of DXF interface to be used as plugin for SALOME Geometry module. It provides functions to import CAD models stored in DXF format (*.dxf files) into SALOME study and export CAD models from SALOME to the *.dxf files. ============ Installation ============ See the INSTALL file for more information. ===== Usage ===== 1. Set environment (DO NOT FORGET to correct path) * Set DXFPLUGIN_ROOT_DIR variable that should point to the DXF plugin installation directory. It is required for SALOME Geometry module to automatically detect a plugin (see APPENDIX below). For example: - for csh: % setenv DXFPLUGIN_ROOT_DIR /path/to/the/DXFPLUGIN - for bash: % export DXFPLUGIN_ROOT_DIR=/path/to/the/DXFPLUGIN * Set LD_LIBRARY_PATH variable to point to the OCCT DXF XDE product libraries, for example: - for csh: % setenv DXF_ROOT_DIR /path/to/the/DXF-6.9.0 % setenv LD_LIBRARY_PATH ${DXF_ROOT_DIR}/lib:${LD_LIBRARY_PATH} - for bash: % export DXF_ROOT_DIR=/path/to/the/DXF-6.9.0 % export LD_LIBRARY_PATH=${DXF_ROOT_DIR}/lib:${LD_LIBRARY_PATH} * OCCT DXF XDE product requires also an OCCT license library. Normally OCCT license library is distributed with OCCT DXF XDE product, but it can also be distributed separately. In latter case you might need to set-up environment to point to the OCCT license library, as follows: - for csh: % setenv OCCLICENSE_ROOT_DIR /path/to/the/OCCLicense-6.9.0 % setenv LD_LIBRARY_PATH ${OCCLICENSE_ROOT_DIR}/lib:${LD_LIBRARY_PATH} - for bash: % export OCCLICENSE_ROOT_DIR=/path/to/the/OCCLicense-6.9.0 % export LD_LIBRARY_PATH=${OCCLICENSE_ROOT_DIR}/lib:${LD_LIBRARY_PATH} 2. Usage in SALOME * Run SALOME and activate Geometry module. * Import the DXF file: Menu File - Import... In the "Import" dialog box choose file type: DXF Files ( *.dxf ). Browse and select the file and click "Open" button. New object (shape) will appears in the SALOME object browser. * Export to the DXF file: Select a shape in the SALOME object browser. Menu File - Export... In the "Export" dialog box choose file type: DXF Files ( *.dxf ). Enter the file name and click "Save" button. =============== Troubleshooting =============== Please, send a mail to webmaster.salome@opencascade.com ======== APPENDIX ======== Since SALOME version 7.4.0, Geometry module implements a mechanism to automatically detect plugins. To set-up the plug-in to SALOME Geometry module, it is just necessary to set DXFPLUGIN_ROOT_DIR environment variable to point to the installation directory of DXF plugin as described in paragraph "Usage" above. In earlier versions of SALOME there is no such mechanism. To use DXF plugin within SALOME Geometry module, it is necessary to specify GEOM_ENGINE_RESOURCES_DIR environment variable to point to the DXF plugin's resources directory, for example: - for csh: % setenv GEOM_ENGINE_RESOURCES_DIR ${DXFPLUGIN_ROOT_DIR}/share/salome/resources/dxfplugin - for bash: % export GEOM_ENGINE_RESOURCES_DIR=${DXFPLUGIN_ROOT_DIR}/share/salome/resources/dxfplugin