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: 

FilteredElementCollector issue

2 REPLIES 2
Reply
Message 1 of 3
rafaelyn
377 Views, 2 Replies

FilteredElementCollector issue

Hi,

 

I'm trying to list only visible Floor in this activeview (see Figure 1).

 

But when using:

 

___________________________________________________________________________

ElementCategoryFilter filter = new ElementCategoryFilter(BuiltInCategory.OST_Floors);
FilteredElementCollector collector1 = new FilteredElementCollector(doc, doc.ActiveView.Id);
collector1 = collector1.WherePasses(filter);

___________________________________________________________________________

 

He is also listing this Floor. (see Figure 2)

 

But if I change the Floor (see figure 3), it works and does not list the previous Floor.

 

Anybody can help me?

2 REPLIES 2
Message 2 of 3
Joe.Ye
in reply to: rafaelyn

 

Hi rafaelyn

 

I cannot get your idea from those pictures.

Please add some comments to the two pictures.

thank you.



Joe Ye
Contractor
Developer Technical Services
Autodesk Developer Network
Message 3 of 3
rafaelyn
in reply to: Joe.Ye

Hi Joe!

 

Figure 1 shows the section view of my project.

 

When I use the above code it also lists the shaded slab (Figure 2).

 

using: new FilteredElementCollector (doc, doc.ActiveView.Id😞

 

he should not only list the slab down? (Figure 2, not hatched slab)

 

sorry my English (Google Translator).

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