I am trying to use BoundingBox.GetElementsInstersect to identify elements intesecting or inside a bounding box drawn around a duct. But I keep getting the warning message
“Warning: BoundingBox.GetElementsIntersect operation failed. Unable to load type ‘Autodex.Revit.DB.DisplayUnitType’ from assembly ‘RevitAPI, Version=23.0.0.0, Culture=neutral, PublicKeyToken=null’.”
I read that this can be due to API changes in Revit. Is there a solution to this warning?
I have uploaded the revit file and the dynamo script I am working with.
Project1.rvt (5.2 MB)
Test.dyn (25.6 KB)