From e0ef642d248422ea4e97060b180163f6f2c8f9ec Mon Sep 17 00:00:00 2001 From: Mark Ganson TheMarkster <39143564+mwganson@users.noreply.github.com> Date: Mon, 21 May 2018 11:41:35 -0500 Subject: [PATCH] fix copy/paste error, add back 3 lines Good catch, Yorik. I never intended to remove those lines. Must have happened when I was editing the documentation string. --- src/Mod/Draft/Draft.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Mod/Draft/Draft.py b/src/Mod/Draft/Draft.py index 01ba1ac11d..fc799d3753 100644 --- a/src/Mod/Draft/Draft.py +++ b/src/Mod/Draft/Draft.py @@ -1163,6 +1163,9 @@ def makeArray(baseobject,arg1,arg2,arg3,arg4=None,arg5=None,arg6=None,name="Arra same for z direction with zvector and znum. In case of polar array, center is a vector, totalangle is the angle to cover (in degrees) and totalnum is the number of objects, including the original. The result is a parametric Draft Array.''' + if not FreeCAD.ActiveDocument: + FreeCAD.Console.PrintError("No active document. Aborting\n") + return obj = FreeCAD.ActiveDocument.addObject("Part::FeaturePython",name) _Array(obj) obj.Base = baseobject