Draft: Housekeeping: call 'make' functions with new name (4)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user