Hi All,
The bellow code I used some days before.It was working fine.
@T_Pover Wrote this for me.But Its not working now.
import clr
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
#The inputs to this node will be stored as a list in the IN variables.
fittings = UnwrapElement(IN[0])
refs =
for x in fittings:
connset = x.MEPModel.ConnectorManager.Connectors
conn_pipes =
for c in connset:
if c.IsConnected:
for lc in c.AllRefs:
conn_pipes.append(lc.Owner)
refs.append(conn_pipes)
#Assign your output to the OUT variable.
OUT = refs