Just a bit off topic... but related to Sketcher new features...
would it be possible to add the option to move/shift the Sketch by a python command?
I found the option to Copy a Sketch, but not to Move it...
Should I make a feature request for this?
1-based or 0-based, I guess there is no convention for freecad. As far as I know occt is 1-based (eg setting poles of bspline) and python is 0-based. Maybe the convention should be: everything exposed to python should be 0-based.But then some functions need to be updated and then some stuff will break and then some people will wine. So better create the convention that everything new and exposed to python is 0-based and all existing 1-based stuff is historically unconventional.abdullah wrote:Do you see a meaningful impact from changing in the Sketcher, the constraint names from being one-based indices, e.g. Constraint1, Constraint2, to Constraint0, Constraint1; and the same for elements (Edge0, Edge1)? Would you favour such change or not?
There is still some tweaking to do with autoconstraints, but you get a new Python command:
would it be possible to have a default option to move all Geometry i.e. giving the first parameter empty?
Sure. I have implemented this. Because internally move, copy, clone and rectangular array use the same c++ function, all of them inherit this behaviour.