Draft: Housekeeping: call 'make' functions with new name, continued
This commit is contained in:
@@ -40,22 +40,22 @@ if App.GuiUp:
|
||||
|
||||
def make_clone(obj, delta=None, forcedraft=False):
|
||||
"""clone(obj,[delta,forcedraft])
|
||||
|
||||
Makes a clone of the given object(s).
|
||||
|
||||
Makes a clone of the given object(s).
|
||||
The clone is an exact, linked copy of the given object. If the original
|
||||
object changes, the final object changes too.
|
||||
|
||||
object changes, the final object changes too.
|
||||
|
||||
Parameters
|
||||
----------
|
||||
obj :
|
||||
obj :
|
||||
|
||||
delta : Base.Vector
|
||||
Delta Vector to move the clone from the original position.
|
||||
Delta Vector to move the clone from the original position.
|
||||
|
||||
forcedraft : bool
|
||||
If forcedraft is True, the resulting object is a Draft clone
|
||||
even if the input object is an Arch object.
|
||||
|
||||
|
||||
"""
|
||||
|
||||
prefix = utils.get_param("ClonePrefix","")
|
||||
@@ -79,7 +79,7 @@ def make_clone(obj, delta=None, forcedraft=False):
|
||||
cl = Arch.makeComponent()
|
||||
else:
|
||||
try:
|
||||
clonefunc = getattr(Arch,"make"+obj[0].Proxy.Type)
|
||||
clonefunc = getattr(Arch, "make_" + obj[0].Proxy.Type.lower())
|
||||
except Exception:
|
||||
pass # not a standard Arch object... Fall back to Draft mode
|
||||
else:
|
||||
|
||||
@@ -37,10 +37,10 @@ if App.GuiUp:
|
||||
|
||||
|
||||
def make_facebinder(selectionset, name="Facebinder"):
|
||||
"""makeFacebinder(selectionset, [name])
|
||||
|
||||
"""make_facebinder(selectionset, [name])
|
||||
|
||||
Creates a Facebinder object from a selection set.
|
||||
|
||||
|
||||
Parameters
|
||||
----------
|
||||
selectionset :
|
||||
|
||||
Reference in New Issue
Block a user