View.IsolateElementTemporary Error


I am working on a script to check viewing quality in a spectator facility. The idea is to create a series of 3D volumes which represents the “cone of vision” of each of the spectators and import these volumes into Navisworks in order to run a collision detection against all other model elements.

In order to do this, I need to create a view, isolate the “cone of vision” geometries and export them to Navisworks. I am stuck on isolating the “cone of vision” geometry in the view. I am getting an error that says “Expected ICollection[ElementId], got list”


import clr
from Autodesk.DesignScript.Geometry import *

from Autodesk.Revit.DB import *
#The inputs to this node will be stored as a list in the IN variables.
dataEnteringNode = IN

view = UnwrapElement(IN[0][0])
elements = UnwrapElement(IN[1])
idList =

for i in range(len(elements)):


#Assign your output to the OUT variable.
OUT = 0

Could this be what you’re after?


Looks like it. It will take a stab at it this evening, and let you know the outcome. Thanks!

You’re welcome :slight_smile:

Worked! Thanks again @Yna_Db

1 Like