How much interest is there to integrate LibreOffice into FreeCAD?

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: How much interest is there to integrate LibreOffice into FreeCAD?

Post by microelly2 »

IMO as big step forward is to have a interprocess communication between the running libre office window and the freecad app:

chang something in office and get the changes in cad.

I tried this with inkscape and freecad but without access.

Maybe this is possible with libre office api ?
So someone can edit a libre office painting and get it in freecad.

I go this way with the neo4j database. A sensor running in freecad looks at the database
and sends notifications to the app.
User avatar
HakanSeven12
Veteran
Posts: 1481
Joined: Wed Feb 06, 2019 10:30 pm

Re: How much interest is there to integrate LibreOffice into FreeCAD?

Post by HakanSeven12 »

That would be useful. +1
User avatar
Aleks
Posts: 309
Joined: Sun Mar 08, 2020 5:27 pm
Location: Bonn, Germany
Contact:

Re: How much interest is there to integrate LibreOffice into FreeCAD?

Post by Aleks »

I actually do not care how it is implemented. I just want to generate manuals depending on cad model specifications.
FreeCAD als Maschinenbauer in die Konstruktion und Fertigung integrieren. Schulung buchen: www.alsado.de/freecad-schulungen
User avatar
salp
Posts: 252
Joined: Thu Nov 21, 2013 11:58 pm
Location: Putnam, NY

Re: How much interest is there to integrate LibreOffice into FreeCAD?

Post by salp »

microelly2 wrote: Wed Mar 11, 2020 8:33 am IMO as big step forward is to have a interprocess communication between the running libre office window and the freecad app:

chang something in office and get the changes in cad.
So someone can edit a libre office painting and get it in freecad.

I go this way with the neo4j database. A sensor running in freecad looks at the database
and sends notifications to the app.
From the brief testing I'v done so far, the solution seems quite stable and the interaction can be scripted on both sides. LibreOffice python scripts can control FreeCAD as well.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: How much interest is there to integrate LibreOffice into FreeCAD?

Post by Joel_graff »

salp wrote: Wed Mar 11, 2020 11:41 pm From the brief testing I'v done so far, the solution seems quite stable and the interaction can be scripted on both sides. LibreOffice python scripts can control FreeCAD as well.
That's great!
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: How much interest is there to integrate LibreOffice into FreeCAD?

Post by microelly2 »

salp wrote: Wed Mar 11, 2020 11:41 pm From the brief testing I'v done so far, the solution seems quite stable and the interaction can be scripted on both sides. LibreOffice python scripts can control FreeCAD as well.
Would be nice to see an example how to draw from FreeCAD Gui a line into an open Libre office drawing document.
User avatar
salp
Posts: 252
Joined: Thu Nov 21, 2013 11:58 pm
Location: Putnam, NY

Re: How much interest is there to integrate LibreOffice into FreeCAD?

Post by salp »

I have gotten as far as being able to launch LibreOffice fromFreeCAD with this macro https://github.com/myoldz/FC_LibreOffice.git.

I did not start Calc automatic on purpose, but once you open the LibreOffice document it is linked to the "doc" object.

Next step's:
copy variables from FreeCAD and put them into a spreadsheet
copy variables from a spreadsheet and put them into FreeCAD

note: running the macro does generate an error, but the call succeeds.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: How much interest is there to integrate LibreOffice into FreeCAD?

Post by Kunda1 »

salp wrote: Fri Mar 13, 2020 7:09 pm
Nice!!!
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
User avatar
microelly2
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: How much interest is there to integrate LibreOffice into FreeCAD?

Post by microelly2 »

salp wrote: Fri Mar 13, 2020 7:09 pm I have gotten as far as being able to launch LibreOffice fromFreeCAD with this macro https://github.com/myoldz/FC_LibreOffice.git.
the script runs for me but when I access doc the app crashes

Program received signal SIGSEGV, Segmentation fault.
#0 /lib/x86_64-linux-gnu/libc.so.6(+0x36cb0) [0x2b1eae26bcb0]
#1 /tmp/.mount_FreeCAMllRs7/usr/bin/../lib/libpython3.7m.so.1.0(PyModule_GetDict+0xb) [0x2b1eac4005ab]
#2 /usr/lib/libreoffice/program/libpyuno.so(+0x8d3e) [0x2b1ee15a0d3e]
#3 0x2b1ee15a0f58 in pyuno::Runtime::Runtime() from /usr/lib/libreoffice/program/libpyuno.so+0x38
#4 ...


OS: Ubuntu 14.04.6 LTS (Unity/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.18829 (Git) AppImage
Build type: Release
Branch: master
Hash: 186d52ffd47696fadcd91369365e97f084051e7b
Python version: 3.7.3
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
User avatar
salp
Posts: 252
Joined: Thu Nov 21, 2013 11:58 pm
Location: Putnam, NY

Re: How much interest is there to integrate LibreOffice into FreeCAD?

Post by salp »

microelly2 wrote: Sat Mar 14, 2020 5:17 pm the script runs for me but when I access doc the app crashes

Looking into it, thanks.
Post Reply