How Can I join Column that are on the same place but with different Levels .
For Example I have a rectangular Column From level 1 to Level 2 , Then on the exact same place I have a Column from level 2 to Level 3 then from 3 to 4 , They are all placed in the same place but associated with different levels
My question is how Can I join these elements in a way that they are directly from Level 1 to Level 4 and they are considered as one element
Thanks
1 Like
Hello,
i found something:
but it does not finaly join it
import clr
clr.AddReference('Protogeometry')
from Autodesk.DesignScript.Geometry import *
clr.AddReference("RevitAPI")
import Autodesk
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
#Die Eingaben für diesen Block werden in Form einer Liste in den IN-Variablen gespeichert.
dataEnterningNode = IN
elementA = UnwrapElement(IN[0])
elementB = UnwrapElement(IN[1])
_Array = IN[2]
x_dim = len(_Array)
y_dim = len(_Array[0])
inter_Count = 0
doc = DocumentManager.Instance.CurrentDBDocument
results = []
TransactionManager.Instance.EnsureInTransaction(doc)
i = -1
j = -1
for A in elementA:
i +=1
for B in elementB:
if j < y_dim-1:
j +=1
else:
j = 0
try:
if _Array[i][j]:
inter_Count +=1
result = Autodesk.Revit.DB.JoinGeometryUtils.JoinGeometry
(doc,A,B)
results.append(result)
except:
pass
TransactionManager.Instance.TransactionTaskDone()
#Weisen Sie Ihre Ausgabe der OUT-Variablen zu.
OUT = results
Hello Forgive me for asking I am not that good with Dynamo, The codes that you have sent me , the ones above the picture (Dynamo script ) what should I do with them . Should I just copy the nodes and it will work or will I use the above script ?
Thanks a lot
JoinAllElements.dyn (17.5 KB)
there is still missing final part, it is not join the elements, try sort by level and join it
Thanks Andreas , so all I have to do is find a node which is responsible for joining elements Right ?
1 Like
Yes!