In the example file a Draft_Circle created on the XY plane with its center at the origin was put in a Std_Part.
That Std_Part was manipulated to achieve a 'random' position and orientation.
Selecting the face of the circle and calling Draft_SelectPlane results in the WP being aligned with the XY plane.
Code: Select all
OS: Windows 8.1 (6.3)
Word size of FreeCAD: 64-bit
Version: 0.20.25220 (Git)
Build type: Release
Branch: master
Hash: 46282db7c8c65d1205a4cd03499d4beadb1573c6
Python version: 3.8.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: Dutch/Netherlands (nl_NL)