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”
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)
elements = UnwrapElement(IN)
for i in range(len(elements)):
#Assign your output to the OUT variable.
OUT = 0