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