O.k., so, I am pretty ignorant about 3D modeling as hardly do any, but I would like to and am trying to pick up FreeCAD.
While learning to use FreeCAD as an app and its own friendly Gui is farily easy, I could use a way to implement 3D stuff into my own application, though...so, I am reading all the documentation in this site, yes, really, all of it...I don't mind and picked up key information here and there.
So, I am focusing on scripting, embedding, PyQt, pivy, coin. The new page on embedding is pretty short and does not show how to embed FreeCAD with Gui capabilities, but without the entire Gui. The old one offers four alternative ways to embed; unfortunately, things do not seem to work...in particular, back then they said that one good way to embed was using the quarter module...any ideas where it went, is it gone? is there an equivalent way to achieve the same thing offered then?
I am dreaming of having my own application using FreeCAD without the main menu, maybe some object/view manipulation toolbars and side panel to edit scripted objects View/Data attributes.
Looking for advise.
Thanks
Germán
pivy.quarter QuarterWidget
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Re: pivy.quarter QuarterWidget
Oh, along these new pages, I just run into the same page offering to use pivy.quarter, too...of course, just because I found it, it does not mean it now works.
Re: pivy.quarter QuarterWidget
I ran into the same problem. Have you solved it?
Re: pivy.quarter QuarterWidget
This would be far from easy, because freecad does a lot of things besides displaying contents in a 3d view. Once the GUI is up, all the tools will start to expect other pieces of the interface present, such as the task system, the output console, the properties editor, etc. Going through all the code to modify that in order to work with your own interface would be a gigantic work.
I think you have two much easier choices: use the full FreeCAD interface and modify it (with some knowledge of Qt you can do almost anything with it, even from python), or forget about it entirely, and use only the non-Gui (that we call App) part of FreeCAD, and build an interface from scratch.
*EDIT* Oops... old post
I think you have two much easier choices: use the full FreeCAD interface and modify it (with some knowledge of Qt you can do almost anything with it, even from python), or forget about it entirely, and use only the non-Gui (that we call App) part of FreeCAD, and build an interface from scratch.
*EDIT* Oops... old post
Re: pivy.quarter QuarterWidget
I found an easy way to use only the 3D-Viewer in the GUI of my own Python-App.
The important parts are :
import FreeCAD
importFreeCADGui
FreeCADGui.showMainWindow()
mw = FreeCADGui.getMainWindow()
.
.
.
mdi = mw.findChild(QMdiArea)
w = MainWindow()
w.setCentralWidget(mdi)
w.show()
mw.hide()
MainWindow is my own gui-class, which embedds the 3D-viewer of the FreeCADGui.
The important parts are :
import FreeCAD
importFreeCADGui
FreeCADGui.showMainWindow()
mw = FreeCADGui.getMainWindow()
.
.
.
mdi = mw.findChild(QMdiArea)
w = MainWindow()
w.setCentralWidget(mdi)
w.show()
mw.hide()
MainWindow is my own gui-class, which embedds the 3D-viewer of the FreeCADGui.
Re: pivy.quarter QuarterWidget
Do the keyboard shortcuts (del, ctrl + z etc.) work with this method?I found an easy way to use only the 3D-Viewer in the GUI of my own Python-App.
The important parts are :
import FreeCAD
importFreeCADGui
FreeCADGui.showMainWindow()
mw = FreeCADGui.getMainWindow()
.
.
.
mdi = mw.findChild(QMdiArea)
w = MainWindow()
w.setCentralWidget(mdi)
w.show()
mw.hide()
MainWindow is my own gui-class, which embedds the 3D-viewer of the FreeCADGui.