Hi Pekka, sorry for the necroposting, but I'm trying to use this feature in Freecad 0.19 nightly and I have a problem.roivai wrote: ↑Sat Feb 11, 2017 9:03 amHi,
I struggled with this same question as I needed to make a Path job that would cut multiple parts on a same run. I know it could be done with fixture offset etc, but I also wanted to rotate parts to allow efficient nesting on the stock. I thought it would be easily done by making a copy of a (compound) Path and then placing it with offset and rotation. But like mentioned here, the Placement only affected the view object, not the Path itself.
I wrote a method to position and rotate Path commands if anyone is interested. For now, I incorporated it to PathCopy feature only, as that was what I needed at that point. But if needed, I think it could be used more generally. It allowed me to do for example this:
You can check the code by looking at a commit on my fork:
https://github.com/pekkaroi/FreeCAD/com ... 49da50bc3b
So what I do is:
- create a new path
- use copy to create a path copy
- transform the path copy using placement
- export the job to GCode via postprocessor
Basically the path gets created and transformed correctly but when it's exported both paths (transformed and original) generate the same GCode, so instead of two copies I get the same path twice, overlapping.
Is this how it is supposed to work, because if it's the case there is not much use to it.