r-frank wrote:I also played around with your code.
If i am not mistaken all bodies within the document have to be made invisible
and only one shape (PartDesignNext-feature) within one of the bodies has to be visible, is this correct ?
no, with my modification you don't need too make Body invisible...
that is exactly the code modification purpose
as in this thread
and it is working also for that user
Grazie Maurice. Ho provato e funziona.
Please note that if you make any modification in your Mod yourfilemodified.py file, you need to restart FreeCAD to have this modification available...
Best is if you delete also yourfilemodified.pyc before restart FC
r-frank wrote:Because i opened your sample part and immediately got an error with abort upon import into
assembly2 (on Windows 7 64-bit with 0.17.8922).
So i opened your sample part in 0.17, made the body invisible, saved the file and tried again to import into
assembly2 - this time all went fine ...
hummm that is strange ... I tested this with the latest FC 0.17 8937 and it works fine (as it is working for the user @ Marco_T )
r-frank wrote:As soon as i get the feeling that 0.17 and its workflow will "stabilize" i will be happy to merge the code ...
my code is back compatible with FC 0.15, FC 0.16 (it is transparent, which means doesn't do anything different of what is the behavior in previous FC releases) and it will work with all the next FC 0.17 releases until the Body object will not change its Name (that I don't think will ever happen), so I don't see any reason to wait in merging the code...
I also tested the code in FC 0.15 and FC 0.17 (8839) under ubuntu without any issue
PS there is already some of my code in assembly2...
you can see my PR merged here
https://github.com/hamish2014/FreeCAD_a ... 88f3aeaa3f