Collecting Wire Intersections

Collecting Wire Intersections

Anonymous
Not applicable
721 Views
3 Replies
Message 1 of 4

Collecting Wire Intersections

Anonymous
Not applicable

Hey everybody!

 

I'm working on a script that will collect all mechanical equipment in a file and attempt to verify that controls are connected to each said piece of equipment. To this end, I've been looking at the following for inspiration on how to get intersecting items: http://thebuildingcoder.typepad.com/blog/2010/12/find-intersecting-elements.html

 

My test file is an SDV with a chamfer wire connected to it and a few other SDV's at a distance. I know the intersection filter is working because if I increase the bounding box I can get all the neighbouring SDV's. However, I can't seem to get the wire itself. Using the Revit lookup "Snoop Selected Element" tool, I can see that the wire does indeed have its own bounding box, although the Z dimension is zero.

 

Is it possible to use this type of intersection to grab wire elements?

Is there a better way to accomplish what I'm trying to do?

 

Thank you.

0 Likes
Accepted solutions (2)
722 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

I found this: http://thebuildingcoder.typepad.com/blog/2010/06/retrieve-mep-elements-and-connectors.html which seems to be relevant to my interests. I'm thinking about grabbing the list of connectors in my mechanical equipment and ensuring they're connected to relevant wiring. This seems like it would be a more reliable method for finding connections as passing wiring could give a false positive using bounding box intersections.

 

Hopefully this isn't too off base. Thanks.

0 Likes
Message 3 of 4

Anonymous
Not applicable
Accepted solution

Well, I realize I'm just talking to myself at this point, but I hate finding a thread with a shared problem and not finding a solution. So I'm posting my resolution for posterity.

 

I was able to use Jeremy's method for collecting the ConnectorSet of each of my pieces of equipment. From there I iterated through, found the relevant connectors and checked to see if they were connected (IsConnected). If not, I threw the equipment into a list and marked it accordingly. Cheers.

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

I don't know whether you can use an intersection filter for wires.

 

Making use of the connector information seems like a safer and more reliable direction to head.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder