The whole "DraftWorkingPlane" source is coded in Python:
https://github.com/FreeCAD/FreeCAD/blob ... ngPlane.py
Set Draft Working Plane
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!