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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user