попытка сделать тройник:
import clr
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
clr.AddReference("RevitAPI")
from Autodesk.Revit.DB import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
clr.ImportExtensions(Revit.GeometryConversion)
if isinstance(IN[0], list):
pipe1 = UnwrapElement(IN[0])
else:
pipe1 = [UnwrapElement(IN[0])]
if isinstance(IN[1], list):
pipe2 = UnwrapElement(IN[1])
else:
pipe2 = [UnwrapElement(IN[1])]
if isinstance(IN[2], list):
pipe3 = UnwrapElement(IN[2])
else:
pipe3 = [UnwrapElement(IN[2])]
fittings = []
TransactionManager.Instance.EnsureInTransaction(doc)
fitting = doc.Create.NewTeeFitting(pipe1, pipe2, pipe3)
fittings.append(fitting.ToDSType(False))
TransactionManager.Instance.TransactionTaskDone()
OUT = fittings