Hi,
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
clr.AddReference(‘ProtoGeometry’)
from Autodesk.DesignScript.Geometry import *
clr.AddReference(‘RevitAPI’)
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)):
idList.append(elements[i].Id)
view.IsolateElementsTemporary(idList)
#Assign your output to the OUT variable.
OUT = 0