From eca1c75056e1bf4c5e0020c7659cbd3541b75cfa Mon Sep 17 00:00:00 2001 From: vocx-fc Date: Mon, 16 Mar 2020 12:17:55 -0600 Subject: [PATCH] Draft: add correct docstring to old Array tools Previously they mentioned incorrectly the Shape2DView tool. --- src/Mod/Draft/DraftTools.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/Mod/Draft/DraftTools.py b/src/Mod/Draft/DraftTools.py index 521ee687ed..26521cf4ac 100644 --- a/src/Mod/Draft/DraftTools.py +++ b/src/Mod/Draft/DraftTools.py @@ -4441,9 +4441,16 @@ class Draft2Sketch(Modifier): class Array(Modifier): - """The Shape2DView FreeCAD command definition""" + """GuiCommand for the Draft_Array tool. - def __init__(self,use_link=False): + Parameters + ---------- + use_link: bool, optional + It defaults to `False`. If it is `True`, the created object + will be a `Link array`. + """ + + def __init__(self, use_link=False): Modifier.__init__(self) self.use_link = use_link @@ -4474,11 +4481,12 @@ class Array(Modifier): 'FreeCAD.ActiveDocument.recompute()']) self.finish() + class LinkArray(Array): - "The Shape2DView FreeCAD command definition" + """GuiCommand for the Draft_LinkArray tool.""" def __init__(self): - Array.__init__(self,True) + Array.__init__(self, use_link=True) def GetResources(self): return {'Pixmap' : 'Draft_LinkArray',