Arch groups now use DocumentObjectGroupPython

This commit is contained in:
Yorik van Havre
2012-04-18 18:03:33 -03:00
parent 41523af62c
commit 05823711ac
4 changed files with 63 additions and 29 deletions

View File

@@ -39,12 +39,18 @@ def addComponents(objectsList,host):
if not isinstance(objectsList,list):
objectsList = [objectsList]
tp = Draft.getType(host)
if tp in ["Cell","Floor","Building","Site"]:
if tp in ["Cell"]:
c = host.Components
for o in objectsList:
if not o in c:
c.append(o)
host.Components = c
elif tp in ["Floor","Building","Site"]:
c = host.Group
for o in objectsList:
if not o in c:
c.append(o)
host.Group = c
elif tp in ["Wall","Structure"]:
a = host.Additions
for o in objectsList: