****** 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 Parasolid interface to be used as plugin for SALOME Geometry module. It provides a functions to import CAD models stored in Parasolid format (*.x_t, *.xt files) into SALOME study. ============ Installation ============ See the INSTALL file for more information. ===== Usage ===== 1. Set environment (DO NOT FORGET to correct path) * Set XTPLUGIN_ROOT_DIR variable that should point to the XT plugin installation directory. It is required for SALOME Geometry module to automatically detect a plugin (see APPENDIX below). For example: - for csh: % setenv XTPLUGIN_ROOT_DIR /path/to/the/XTPLUGIN - for bash: % export XTPLUGIN_ROOT_DIR=/path/to/the/XTPLUGIN * Set LD_LIBRARY_PATH variable to point to the OCCT Parasolid XDE product libraries, for example: - for csh: % setenv XT_ROOT_DIR /path/to/the/XT-6.9.0 % setenv LD_LIBRARY_PATH ${XT_ROOT_DIR}/lib:${LD_LIBRARY_PATH} - for bash: % export XT_ROOT_DIR=/path/to/the/XT-6.9.0 % export LD_LIBRARY_PATH=${XT_ROOT_DIR}/lib:${LD_LIBRARY_PATH} * OCCT Parasolid XDE product requires also an OCCT license library. Normally OCCT license library is distributed with OCCT Parasolid 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 Parasolid file: Menu File - Import... In the "Import" dialog box choose file type: Parasolid Files ( *.x_t *.xt ). Browse and select the file and click "Open" button. New object (shape) will appears in the SALOME object browser. =============== 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 XTPLUGIN_ROOT_DIR environment variable to point to the installation directory of XT plugin as described in paragraph "Usage" above. In earlier versions of SALOME there is no such mechanism. To use XT plugin within SALOME Geometry module, it is necessary to specify GEOM_ENGINE_RESOURCES_DIR environment variable to point to the XT plugin's resources directory, for example: - for csh: % setenv GEOM_ENGINE_RESOURCES_DIR ${XTPLUGIN_ROOT_DIR}/share/salome/resources/xtplugin - for bash: % export GEOM_ENGINE_RESOURCES_DIR=${XTPLUGIN_ROOT_DIR}/share/salome/resources/xtplugin