I’m trying to group glazing by room. Geometry (walls, windows, curtain panels etc) are in linked file, rooms in current.
With Curve.ExtrudeAsSolid method i can get a correct shape of a room, that dynamo shows like solid. But when i use it in python with ElementIntersectsSolidFilter i get this error:
Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “string”, line 17, in module
TypeError: expected Solid, got Solid
I would appreciate any help, how to fix it:
Revit 2017.2; Dynamo 1.3; Clockwork and Springs nodes are used.
from Autodesk.DesignScript.Geometry import *
from Autodesk.Revit.DB import *
dataEnteringNode = IN
rooms = IN
elems = IN
for room in rooms:
filter = Autodesk.Revit.DB.ElementIntersectsSolidFilter(room)
for elem in elems:
OUT = filteredElems
If i use BoundingBox.Intersects method, it works, but there are some rooms with arc-shaped walls and this gives wrong grouping. Changed it to Geometry.DoesIntersect, but it’s toooooo slow, not sure if it works.