Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I'm trying to get all unused connectors in document but I'm getting the exception:
How to solve it?
Solved! Go to Solution.
Hello, I'm trying to get all unused connectors in document but I'm getting the exception:
How to solve it?
Solved! Go to Solution.
It's Named "FilterElementCollector" it can only access the Revit Objects which are inherited from "Element" class or "Element" itself, Connector is not a Element so giving this inside the Class Filter obviously will through an error.
You need to enumerate through the elements and extract their connectors to get them all.
Thanks for answer, I have already understood. I filtered FamilyInstance elements and then got all unused connectors.