Purpose
Manage FreeCAD model sharing and linear versioning. This is a sample app, more to see framework capabilities than to use as a real PLM (Product Lifecycle Management).
Roles
-
ROLE_ADMIN -
ROLE_PLM_USER
See configure roles in Crew to add the role into your Intranet
Server Installation
Install everything in a new user (optional)
It is better to isolate Freecad in a specific user, in order to not override your Freecad configuration for your user.
To do so:
-
create a new user:
sudo useradd plm --create-home -
Add current
plmgroup to current usersudo usermod -a -G plm <current user> -
Eventually change right of
plmto allow grouprxw -
Restart logout / login cycle or restart to apply group change to your user
Launch FreeCAD on the server
On a Linux server, it is better to install the following package from your distribution:
-
Weston Wayland server
-
FreeCAD >1.0
-
python-protobuf package (See FreeCAD Workbench Installation)
Freecad and Weston allow similar features on Wayland than Xvfb-run under X11.
Install from Server Binaries
Download the latest server binaries from releases.
Launch the server app:
java -jar server-0.6.jar
Server Arguments
See server/grails-app/conf/application.yml for a list of available options
Options to the server can be passed this way:
java -DOption1=Value1 -DOption2=Value2 ... -jar server-0.3.jar
Options
-
Path the Intranet store its files:
-Dintranet.root=/home/test/someDir -
Server port:
-Dserver.port=9444 -
Database url:
-DdataSource.url='jdbc:h2./prodDb2;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE' -
Freecad path:
-Dplm.freecadPath=/somePath… -
Dot exe path:
-Dexe.dot.path=/somePath…
server/grails-app/conf/application.ymlplm:
freecadPath: ${HOME}/freecad-app-link
singleInstance: true
offscreen: false
xvfbRun: false
useWeston: true
Install from Source
Clone the plm repository:
git clone https://github.com/Taack/plm.git
Then copy the content of the plm folder into your intranet app folder (see intranet installation)
Set the FreeCAD path in the server/conf/application.yml file.
In the plm folder, you have 2 scripts you can use : freecad-app-link-distrib.sh if you use your distribution version of FreeCAD or freecad-app-link-flatpak.sh if you choose to install FreeCAD using Flatpak
Create a symlink in your home folder pointing to one of those scripts ln -s <path-to-plm-folder>/freecad-app-link-distrib.sh freecad-app-link.
Start your intranet issuing under the intranet folder:
./gradlew server:bootRun
You can produce a Jar file:
./gradlew server:assemble
The server will be located under server/build/libs
FreeCAD Workbench Installation
Go into Tools > Addon Manager then refresh local cache and search for Taack.
Click on install button.
Usage
Clicking on OK button will upload the file into your Intranet. The Intranet will create a preview, this process might take time.
| If you have many links, import them from the same computer. From other computers, download the zip file from your intranet. |
That’s it; I will record some videos demonstrating this app capabilities.
Todo
-
Add model graph icon
-
Update deps for a model (with Deep option)
-
…