Menu

Storage path lib step Files

Help
Anonymous
2017-02-13
2017-02-13
  • Anonymous

    Anonymous - 2017-02-13

    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

     
  • Mariusz

    Mariusz - 2017-03-05

    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
  • Mariusz

    Mariusz - 2017-04-30

    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.

     
  • ashofphoenix

    ashofphoenix - 2017-05-12

    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
    • Mariusz

      Mariusz - 2017-05-28

      Hello,
      I hope so ;).

       
  • ashofphoenix

    ashofphoenix - 2017-05-12

    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.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.