Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FindNearest to get a count of pipes on trapeze hanger?

1 REPLY 1
Reply
Message 1 of 2
Josh.Thomason
200 Views, 1 Reply

FindNearest to get a count of pipes on trapeze hanger?

The problem is that I've been asked to find a way to get an accurate count of insulation shields on trapeze hangers without modelling insulation shields as this is very time consuming.

 

Is it possible to use the FindNearest Method on all the hangers and return a list of pipes supported on each hanger to get a count of insulation shields?

 

This would also help to get a count of pipe clamps, insulation blocks, etc...

 

1 REPLY 1
Message 2 of 2

I don't see any obvious way to compute nearest points without knowing what elements you are working with.

  

However, if you can define a suitable bounding box around each hanger that guarantees that the pipes within the box belong to the hanger and the ones outside it do not, I think you can easily achieve this using an appropriate filtered element collector.

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report