Draft: Housekeeping: call 'make' functions with new name, continued

This commit is contained in:
Roy
2022-02-11 17:21:53 +01:00
committed by Uwe
parent 6718d8797e
commit acfdfb9c2d
10 changed files with 25 additions and 25 deletions

View File

@@ -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:

View File

@@ -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 :