Draft: parameters to control array options in the task panel

Use the value of the parameters `Draft_array_fuse`
and `Draft_array_Link` to set the default value
of the `Fuse` and `Link array` checkboxes in the task panels.
These default to `False` and `True`, respectively.

Whenever the user toggles a checkbox
the new value of the parameter is stored so that when
the command is used again the last state of the checkbox
is remembered.
This commit is contained in:
vocx-fc
2020-03-28 21:16:55 -06:00
committed by Yorik van Havre
parent e1c31bf927
commit 4d0c0d2d73
4 changed files with 17 additions and 7 deletions

View File

@@ -157,7 +157,8 @@ def get_param_type(param):
"SvgLinesBlack", "dxfStdSize", "showSnapBar",
"hideSnapBar", "alwaysShowGrid", "renderPolylineWidth",
"showPlaneTracker", "UsePartPrimitives",
"DiscretizeEllipses", "showUnit"):
"DiscretizeEllipses", "showUnit",
"Draft_array_fuse", "Draft_array_Link"):
return "bool"
elif param in ("color", "constructioncolor",
"snapcolor", "gridColor"):