-
Notifications
You must be signed in to change notification settings - Fork 107
Convert Plugins
DocDokuPLM has a modularized architecture that makes it possible to extend the core feature set easily. For instance, the CAD files converters are provided as plugins.
To convert most of the 3D formats, we use meshconv. Please refer to this page to install it on your server.
By default DocdokuPLM will try to use
/opt/meshconv/meshconv
To override this path, you need to modify the following properties file :
com/docdoku/server/converters/all/conf.properties
Supported formats are dxf,obj,off,ply,stl,3ds,wrl
To convert Step and Iges files, we use Freecad.
The converter relies on a python interpreter and the Freecad API. To install Freecad API on your system, refer to this page You may also need to edit the file depending on the location of FreeCad API : com/docdoku/server/converters/obj/conf.properties:
freeCadLibPath=/usr/lib/freecad/lib
Supported formats are stp,step,igs,iges
To convert other 3D formats, we use assimp. It works with most of collada files, but may fail with other formats.
To install assimp on your system, please refer to this page.
On ubuntu simply run
sudo apt-get intall assimp-utils
By default DocdokuPLM will try to use
assimp
To override this path, you need to modify the following properties file :
com/docdoku/server/converters/dae/conf.properties
Supported formats are dae,ifc,lwo,x,ac,cob,scn,ms3d
These plugins can convert catia geometry files to DAE, and assembly files to xml. They both need a licence key, please contact us to get a licence.
To generate 3 LODS, we use a program based on OpenMesh.
To install OpenMesh on your system, please refer to this page. Make sure ton install OpenMesh in release mode
Then you need to copy the decimater binaries from docdoku-openmesh-decimater folder or to build it yourself. Place the binary in
/opt/decimater/
To override this path, you need to modify the following properties file :
com/docdoku/server/converters/utils/conf.properties
If you plan to build the sources yourself, you will need to install Qt and gcc. On ubuntu systems, please refer to this page
Open a terminal and enter the following commands
cd docdoku-openmesh-decimater/src
qmake OpenMeshDecimater.pro
make
mv lod.o /opt/decimater/lod.o
mv main.o /opt/decimater/main.o
mv OpenMeshDecimater /opt/decimater/OpenMeshDecimater
The box calculator relies on NodeJs. To install NodeJs on your system, refer to this page. The plugin is written in javascript, and uses the same version of THREE.js in the client application. It runs as a server, listening on port 8888, and must be available at runtime, if not the box of the uploaded geometry won't be computed.
To run the server, open a terminal and run the following commands :
cd docdoku-node-server
npm install
node server.js