Sketcher is not very scriptable, many useful things are encapsulated in the code and not accessible by the API.
As example if you wnat to make a rectangle, you have to trace all the lines and then connect them using constraints, a
Code: Select all
Sketcher.makeRectangle(lengt, height, center)
not to crowd too much the methods, but probably they could be made accessible with little modifications, sadly I don't know how to code in C++, to make some example of what I intend.
Luckily "command echo" in Python Console is helping to script in a decent way.
Regards
Carlo D.