Hello ikua.
I am new to FreeCAD and piping and I and I still learning to use the Tools. A lot of thinks which I currently do, is very experimental.
As you correctly noticed, my current workbench is focused on detailed representation of the fittings. This is because we also want to 3D-print the parts. The Flamingo workbench is more abstract, which makes it more sutable to lay pipes in a house. I suppose your code has similar application as Flamingo.
Soon I will join another projects to construct CAD piping within a house. Maybe your code can be usefull for this task too.
But even if our goals are different, I see following areas where we can collaborate.
- I am neither a civil engineer nor a plumber, I would be glad to receive some constructive critics or tips. For example, in the very beginning I used outer and inner diameters to describe a pipe, but then I realized that Flamingo also uses thicknes. Making some brief internet-reaserach showed, that the common way to specify a pipe is outer dimension + wall thickness.
- For sure all of us tried to create very similar fitting objects in FreeCAD, we can share our code and expirience. (Today I spent hours just to make a simple bent cylinder programmatically)
- Adding fittings to a pipe and then move them together -- is an interesting feature for me. I think Flamingo can add things to pipes too, but I am not sure about subsequent moving together.