Draft: add new options to the make_point_array function

It supports a new parameter `extra` that is used
to provide `ExtraPlacement` for the copies of the array.

Adjust the GuiCommand properly.
This commit is contained in:
vocx-fc
2020-05-21 00:29:06 -05:00
committed by Yorik van Havre
parent 1a277967eb
commit 31c8f49467
2 changed files with 31 additions and 2 deletions

View File

@@ -111,12 +111,14 @@ class PointArray(gui_base_original.Modifier):
else:
base_object = sel[0].Object
point_object = sel[1].Object
extra = None
Gui.addModule('Draft')
_cmd = "Draft.make_point_array"
_cmd += "("
_cmd += "App.ActiveDocument." + base_object.Name + ", "
_cmd += "App.ActiveDocument." + point_object.Name + ", "
_cmd += "extra=" + str(extra)
_cmd += ")"
_cmd_list = ["_obj_ = " + _cmd,