Finding Duct Accesories Host Duct

I used the bellow code in python script.

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

doc = DocumentManager.Instance.CurrentDBDocument

faminsts = UnwrapElement(IN[0])

elementlist = list()

sourcelist = list()

for item in faminsts:

sourcelist.append(doc.GetElement(item.HostElementId))

OUT = sourcelist

Please help me.

@bikashseas Here is the DYN file For Bikash.dyn (2.9 KB)

1 Like

Hi
I am using Dynamo 0.8
it showing something wrong.

Regards

@bikashseas which Revit version your using?

@Kulkul Revit MEP 2014

@Kulkul Can you please give me the python scipt which you have used in that node?

@bikashseas Sorry :frowning: I don’t use Revit MEP 2014 version any more and also Dynamo 0.8 older version.

@Kulkul What’s wrong with my python script.Can you please edit it for me?

Hi
I am waiting for python script.Please help me.