A first example to use Sketcher::SketchObjectPython
A Sketch which computes some objects on base of its inner geometry.
https://youtu.be/U31O5vW4UhI
It is possible to copy the content of a sketch to a new/empty SketchPythonObject and then use the methods of this python object.paullee wrote: ↑Fri Jan 12, 2018 1:01 pmHi, I am trying to figure out how this works and the possibilities.
(Microelly2 has a number of examples which are currently too advanced for me to understand)
Just have a question in the meantime:
If there is already a sketch done and I want to extend this sketches with features in a Sketcher::SketchObjectPython e.g. the feedback sketch Microelly2 ...
- is that a way to 'upgrade' this sketch?
- or need to 'copy' all the content of this sketch (geometries - normal and construction, constraints - driving and non-driving, expressions etc.) to the new Sketcher::SketchObjectPython object?
I hope my question make sense at all
Thanks !
Many thanks!microelly2 wrote: ↑Fri Jan 12, 2018 2:16 pm
It is possible to copy the content of a sketch to a new/empty SketchPythonObject and then use the methods of this python object.
I do this when I get common sketches and want to add functionality. So old sketches can be reused.
I don't know whether it is possible to upgrade a sketch.