keithsloan52 wrote:but where is all this headed are you going to rewrite your parser?
Or use the parser I did on my version of ImportCSG.py
Do you want me to update my code to parser for dxf import so that you can add your code to that?
Just wondering.
I consider my prototype to have two seperate parts. The first is to parse an CSG file and to put it into intermediate tree structure (of python objects of my class 'Node'). The second one is to traverse my tree stucture and to create the FreeCAD 'Features'.
I consider my prototype as example code how to create FreeCAD Features and did the 'parser part' only to aid that.
The dxf processing is bit beyond that, I might reuse it for SVG file import where there are faces with holes, as well.
I'll be happy if you think that you can reuse parts of my prototype in your project. I don't want you to change your plans on your project.
One important lesson in FreeCAD is to often check for you ShapeType and call shape.check() in case you have trouble. You can do a boolean operation of a solid and a face. I this used it to implement the 'project cut=true'. But if you extrude wires (from the dxf) to faces and do boolean operation afterwards you won't get your desired result. And I had a hard time leraning that