Draft: Housekeeping: call 'make' functions with new name (4)

This commit is contained in:
Roy
2022-02-17 16:29:20 +01:00
committed by Chris Hennes
parent a7e356c865
commit fae36b2da0
6 changed files with 13 additions and 13 deletions

View File

@@ -51,8 +51,8 @@ def make_array(base_object,
Rectangular array
-----------------
make_array(object,xvector,yvector,xnum,ynum,[name])
makeArray(object,xvector,yvector,zvector,xnum,ynum,znum,[name])
make_array(object, xvector, yvector, xnum, ynum)
make_array(object, xvector, yvector, zvector, xnum, ynum, znum)
xnum of iterations in the x direction
at xvector distance between iterations, same for y direction
@@ -60,14 +60,14 @@ def make_array(base_object,
Polar array
-----------
makeArray(object,center,totalangle,totalnum,[name]) for polar array, or
make_array(object, center, totalangle, totalnum) for polar array, or
center is a vector, totalangle is the angle to cover (in degrees)
and totalnum is the number of objects, including the original.
Circular array
--------------
makeArray(object,rdistance,tdistance,axis,center,ncircles,symmetry,[name])
make_array(object, rdistance, tdistance, axis, center, ncircles, symmetry)
In case of a circular array, rdistance is the distance of the
circles, tdistance is the distance within circles, axis the rotation-axis,

View File

@@ -33,10 +33,10 @@ import draftutils.gui_utils as gui_utils
def make_copy(obj, force=None, reparent=False, simple_copy=False):
"""makeCopy(object, [force], [reparent])
"""make_copy(object, [force], [reparent], [simple_copy])
Make an exact copy of an object and return it.
Parameters
----------
obj :
@@ -49,7 +49,7 @@ def make_copy(obj, force=None, reparent=False, simple_copy=False):
Group the new object in the same group of the old one.
simple_copy :
Create a simple copy of the object (a new non parametric
Create a simple copy of the object (a new non parametric
Part::Feature with the same Shape as the given object).
"""
if not App.ActiveDocument:
@@ -59,7 +59,7 @@ def make_copy(obj, force=None, reparent=False, simple_copy=False):
newobj = None
if simple_copy and hasattr(obj, 'Shape'):
# this was the old implementation that is actyally not used by default
# this was the old implementation that is actually not used by default
_name = utils.get_real_name(obj.Name)
newobj = App.ActiveDocument.addObject("Part::Feature", _name)
newobj.Shape = obj.Shape