FreeCAD: master 835f4b42

Author Committer Branch Timestamp Parent
vocx-fc yorik master 2020-05-23 18:22:35 master b2882c69
Changeset Draft: clean up code, PEP8, and docstrings in PathArray

Test the inputs to the `make_path_array` function
and return `None` if there is a problem.

Now the make function accepts as input a `"String"` which must be
the `Label` of an object in the document, so it is easier to create
arrays quickly from the Python console.

Add the new parameters to the make function, `align_mode`,
`tan_vector`, `force_vertical`, and `vertical_vector`.
These properties were added to the proxy object in ff323ebdb5.

Add message deprecating the older call `makePathArray`.

Adjust the GuiCommand accordingly. Now it uses the commit
mechanism of the parent `Modifier` class so that the executed
functions are recorded in the Python console.

Clean up the `PathArray` class as well.
mod - src/Mod/Draft/draftguitools/gui_patharray.py Diff File
mod - src/Mod/Draft/draftmake/make_patharray.py Diff File
mod - src/Mod/Draft/draftobjects/patharray.py Diff File
mod - src/Mod/Draft/drafttests/test_modification.py Diff File