Error on node LinkElement.OfCategory

Hello,

I try to extract room from link model using node from bimorph. It works on my previous files. However, I receive this warning in new project file.


Does anyone know how to fix it?

Thanks.

This might be a bug - are you using v4.0.13? If not please upgrade and the test again.

2 Likes

It works. Thanks.

Hello Thomas

I want to use your BimorphNodes Package on a python node. Specifically the linkElement.ByCategory.
But Im getting an error when trying to use this method with RevitLinkInstances, how can I convert my linkInstances to Elements?

link_inst=IN[0]
sys.path.append(bimorph_path)
#
clr.AddReference("BimorphNodes")

from BimorphNodes import *
import Revit as rev

link_elems=[]

cats=FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_Walls)
cats_2=Category.GetCategory(doc,BuiltInCategory.OST_Walls)
cat_unwrapped=[]


links_=FilteredElementCollector(doc).OfClass(RevitLinkInstance).WhereElementIsNotElementType().ToElements()

for link_ in  links_:
	link_elems.append(rev.LinkElement.OfCategory(link_,cats_2))

Thanks