bernd wrote:thanks guys for all these informations.
Hi @bernd
following this old thread
viewtopic.php?t=5775#p46561
the FC Assembly developed by @jriegel should be involved in STEP import and export with assembly structure...
There for I will go for the 2nd approach. I use the STEP-Code project python binding to load all high level objects from a STEP file, like Produkts, Persons and all kind of meta data. Interpret it with a python script, which makes it very flexible and easy to extend. After heaving the high level information I use the low level OCC translater to just get the (Part 42) shapes.
I went through the code and found that in his repository
https://github.com/jriegel/FreeCAD/tree ... embly-next
there is the code to import STEP files using STEP-code library (SCL)
Code: Select all
# This file is part of the StepClassLibrary (SCL).
in the DIR
FreeCAD-dev-assembly-next/src/Mod/Import/App/SCL there is the related code and also there is a STEP file example that has assembly structure...
- step-assembly-CADA.png (48.83 KiB) Viewed 6497 times
- step-assembly.png (101.46 KiB) Viewed 6497 times
triplus wrote:Therefore nothing fancy yet
I don't have a building chain to test it but would please someone that had built it have a look and test if importing the STEP file with this branch will produce an assembly similar to the one in the images?
EDIT triplus wrote:On Ubuntu 16.04 there is an easy way available to try it out (snap package):
Assembly.png
I could try a snap package in Ubuntu 16.04 on a VM, would you suggest me the way to install and obtain that testing release?
Thank you
Maurice