- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Revit API Forum,
I was working on a script last week to run QA checks on systems to make sure everything is kosher. This was my first introduction to Connectors which seems like a pretty powerful system.
It started to give me some ideas for other Connector uses regarding mechanical systems. I was hoping to be able to do something like the following:
Get an element
Get it's connectors
Find the connector ends
use the ends to "climb" down the system branch by finding the neighbouring element and repeating the process
The issues that have been arising are the following:
An element can have more than two ends
I'm not sure hot to get a reference to a neighbouring element using connected Connectors
branching through systems in this fashion could cause you to essentially get lost in the branches unless you map N number of forks.
The direction of the connectors are often bi directional, so how does one know you're progressing in the correct direction even if you could get the neighbours?
Essentially if you wanted to grab piece A on a duct, and iterate through the neighbouring ducts to Piece B, what would be the correct method to do this? You don't have to get super detailed with source, I'm just looking for the high level approach.
Thanks for this.
Solved! Go to Solution.
Developer Advocacy and Support +