diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 50e7dae6cf..7f721c9c16 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -5297,6 +5297,7 @@ class _BezCurve(_DraftObject): obj.addProperty("App::PropertyIntegerList","Continuity","Draft",QT_TRANSLATE_NOOP("App::Property","Continuity")) obj.addProperty("App::PropertyBool","Closed","Draft",QT_TRANSLATE_NOOP("App::Property","If the Bezier curve should be closed or not")) obj.addProperty("App::PropertyBool","MakeFace","Draft",QT_TRANSLATE_NOOP("App::Property","Create a face if this curve is closed")) + obj.addProperty("App::PropertyLength","Length","Draft",QT_TRANSLATE_NOOP("App::Property","The length of this object")) obj.addProperty("App::PropertyArea","Area","Draft",QT_TRANSLATE_NOOP("App::Property","The area of this object")) obj.MakeFace = getParam("fillmode",True) obj.Closed = False @@ -5369,6 +5370,8 @@ class _BezCurve(_DraftObject): fp.Shape = w if hasattr(fp,"Area") and hasattr(w,"Area"): fp.Area = w.Area + if hasattr(fp,"Length") and hasattr(w,"Length"): + fp.Length = w.Length fp.Placement = plm @classmethod