it says to me :
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 49, in
File “”, line 44, in Fhide
TypeError: expected ICollection[ElementId], got ElementId
im trying to create an Ilist but it says that:
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 38, in
TypeError: Cannot create instances of IList[ElementId] because it is abstract
Thanks for your help
Yes, I didn’t read your code very thoroughly. But I think if you use the map function, you iterate over each element Id in the list an therefore end up with picking the ids out of the collection.
If you are asking how to add in references in python, just copy and paste the reference to the top of a python script (after the clr imports in default python nodes)
Paste this:
clr.AddReference(“System”)
from System.Collections.Generic import List