Draft/BIM: change BezCurve, BSpline and Wire to Part::FeaturePython

Fixes: #7387.

See comment: https://github.com/FreeCAD/FreeCAD/issues/7387#issuecomment-2915599566

PR to change the base object of BezCurve, BSpline and Wire to `Part::FeaturePython`. This will only affect new objects. So code will have to also keep handling the old object type (`Part::Part2DObjectPython`).

The modification of BimPreflight.py needs to be verified. The steps in the old code lacked logic IMO. But I may have misunderstood.
This commit is contained in:
Roy-043
2025-05-29 11:32:23 +02:00
committed by Yorik van Havre
parent 848a938d72
commit 66cf7b4c36
17 changed files with 80 additions and 54 deletions

View File

@@ -66,9 +66,7 @@ class DraftObject(object):
allows distinguishing among various types of objects
derived from the same C++ class.
>>> print(A.TypeId, "->", A.Proxy.Type)
Part::Part2DObjectPython -> Wire
>>> print(B.TypeId, "->", B.Proxy.Type)
>>> print(obj.TypeId, "->", obj.Proxy.Type)
Part::Part2DObjectPython -> Circle
This class attribute is accessible through the `Proxy` object: