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: 

Convert Selection to FilteredElementConnector?

2 REPLIES 2
Reply
Message 1 of 3
wils02
295 Views, 2 Replies

Convert Selection to FilteredElementConnector?

Okay here goes nothing:

 

I am trying to implement the PickBox example that is commonly shown http://help.autodesk.com/view/RVT/2014/RUS/?guid=GUID-97372731-5ACA-4EB7-ABDF-7E6B56640DA2

 

with the idea to select multiple elements at the same time and then use a FilteredElementCollector to make sure I only retain supply air terminals.

 

For the life of me, I cannot figure out how to do this, and any help would be greatly appreciated!

 

wils02

2 REPLIES 2
Message 2 of 3
arnostlobel
in reply to: wils02

Hello Wils02:

 

One of the FilteredElementCollector constructors takes a list of element Ids. If such a list is provided then the collector will filter the given elements only, Thus if you get a list of elements from the Selection object, pass it over to the collector. That should do the trick you're after. 

Arnošt Löbel
Message 3 of 3
wils02
in reply to: arnostlobel

AWesome thanks for the reply. That makes sense and I will give that a shot.

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community