we want use all stp-parts shared.
Is it possible to switch the storage path form C:\Program Files\FreeCAD 0.16\Mod\PCB\Parts.. and the Database (freecad-pcb_copy.fpcb) to a server path ?
Or must we use export and import ?
Can anyone help?
Volker
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I was thinking about that request and: at this moment I'm using ConfigParser to save data, so it will be required to rewrite code to support database (global/local) add support for only one type server database? how save user nick/password reading packages list (each time/on request) what will be when somebody add model from the local machine? slow solution (reading/writing)? two variant: local/server? if user will choose global databases that mean he want also use global storage for models?
* how switch between local and global database/storage?
Last edit: Mariusz 2017-03-05
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I will use SQLAlchemy for new database managing - at this moment I tried SQLite and everything works fine. There is also support for MySQL and PostgreSQL.
Current solution (ConfigParser) by default will be replaced by SQLite.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To respond to the original post, (old one I guess) yes it's possible (that's what I'm doing anyway). just be sure to root correctly your library & database path on freecad-PCB setting into freecad and then be sure to store only relative path for your models into database...
for exemple "S:/lbr_3D" is the root library path on your server and "S:/DB" is where you store the database definition onto your server.
well defined those path onto freecad-PCB settings in freecad.
be sure to store "relative path" to this path for your models onto the freecad-PCB database, because when you add a model, it will be stored with FULL PATH so you will have "S:/lbr_3D/<directory>/modelname" stored in the database.
You have to modify it to only point "<directory>/modelname". and then everyone will be able to use it, regardless of the Letter they use for the same network directory.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Hello,
we want use all stp-parts shared.
Is it possible to switch the storage path form C:\Program Files\FreeCAD 0.16\Mod\PCB\Parts.. and the Database (freecad-pcb_copy.fpcb) to a server path ?
Or must we use export and import ?
Can anyone help?
Volker
Hello,
I was thinking about that request and:
at this moment I'm using ConfigParser to save data, so it will be required to rewrite code to support database (global/local)
add support for only one type server database?
how save user nick/password
reading packages list (each time/on request)
what will be when somebody add model from the local machine?
slow solution (reading/writing)?
two variant: local/server?
if user will choose global databases that mean he want also use global storage for models?
* how switch between local and global database/storage?
Last edit: Mariusz 2017-03-05
Hi,
I will use SQLAlchemy for new database managing - at this moment I tried SQLite and everything works fine. There is also support for MySQL and PostgreSQL.
Current solution (ConfigParser) by default will be replaced by SQLite.
Stupid thinking but I'm pretty sure that you have already thought of "importing" the old database onto your new SQL dB ? :p
Last edit: ashofphoenix 2017-05-12
Hello,
I hope so ;).
To respond to the original post, (old one I guess) yes it's possible (that's what I'm doing anyway). just be sure to root correctly your library & database path on freecad-PCB setting into freecad and then be sure to store only relative path for your models into database...
for exemple "S:/lbr_3D" is the root library path on your server and "S:/DB" is where you store the database definition onto your server.
You have to modify it to only point "<directory>/modelname". and then everyone will be able to use it, regardless of the Letter they use for the same network directory.