Find Roof Soffits Using ElementIntersectsSolidFilter

Find Roof Soffits Using ElementIntersectsSolidFilter

atiefenbach
Advocate Advocate
765 Views
5 Replies
Message 1 of 6

Find Roof Soffits Using ElementIntersectsSolidFilter

atiefenbach
Advocate
Advocate

I'm trying to find all the Roof Soffits that intersect a solid extrusion, but the  ElementIntersectsSolidFilter comes back with no results.

ElementIntersectsSolidFilter filterSolid = new ElementIntersectsSolidFilter(GenerateSolidFromRoom(room));
List<Element> ceilingsAndSoffits = new List<Element>();
ceilingsAndSoffits.AddRange(new FilteredElementCollector(doc).OfCategory(BuiltInCategory.OST_RoofSoffit).WherePasses(filterSolid).ToElements()); 
ceilingsAndSoffits.AddRange(new FilteredElementCollector(doc).OfClass(typeof(Ceiling)).WherePasses(filterSolid).ToElements());

My GenerateSolidFromRoom Method will return a Solid using the GeometryCreationUtilities.CreateExtrusionGeometry Method and my "room" BoundarySegments.

 

The code will return all Ceiling but never any Roof Soffits.  I can capture all the other Elements in my Room, except Roof Soffits, by using:

ceilingsAndSoffits.AddRange(new FilteredElementCollector(doc).WherePasses(filterSolid).ToElements());

Is there a reason why the Roof Soffit isn't being filtered?

Anthony Tiefenbach
BIM Manager
HuntonBrady Architects
0 Likes
766 Views
5 Replies
Replies (5)
Message 2 of 6

JimJia
Alumni
Alumni

Dear Anthony,

 

Please accept our sincerer apology for the delay! We had a backlog in the queue these days.

 

We checked the document you provided, unfortunately however it is hard to us to find a clue how to recreate this problem. In order to diagnose, could you isolate your test project and send us a small, reproducible .rvt sample? Note, please do not send us any information you think are confidential to your company.

 

Besides, the ElementIntersectsSoliderFilter has some known issue on some elements filtering, you can refer to this similar post on details:

http://forums.autodesk.com/t5/revit-api-forum/light-source-with-elementintersectsfilter/m-p/6304618/...

 

 

We appreciate your understanding and your patience again!


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes
Message 3 of 6

atiefenbach
Advocate
Advocate

I've attached a sample project with the sample code, that I expect to return all the elements within a Solid.  The code is written in a Document Level Macro, but if that doesn't work let me know and I'll post it separately.

 

Thanks

Anthony Tiefenbach
BIM Manager
HuntonBrady Architects
0 Likes
Message 4 of 6

JimJia
Alumni
Alumni
Dear Anthony,

Thanks a lot for sharing this, I can reproduce this issue, I already create issue REVIT-100856 to engineering team, will keep you updated on any progress.

This issue is important to me. What can I do to help?
This issue needs to be assessed by our engineering team, and prioritized against all of the other change requests that are outstanding. As a result any information that you can provide to influence this assessment will help. Please provide the following where possible:
• Impact on your application and/or your development.
• The number of users affected.
• The potential revenue impact to you.
• The potential revenue impact to Autodesk.
• Realistic timescale over which a fix would help you.
• In the case of a request for a new feature or a feature enhancement, please also provide detailed Use Cases for the workflows that this change would address.
This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact Change Requests.

We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.

Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes
Message 5 of 6

atiefenbach
Advocate
Advocate

@Anonymous wrote:
• Impact on your application and/or your development.
• The number of users affected.
• The potential revenue impact to you.
• The potential revenue impact to Autodesk.
• Realistic timescale over which a fix would help you.
• In the case of a request for a new feature or a feature enhancement, please also provide detailed Use Cases for the workflows that this change would address.

  • As this prevents me for efficiently finding all "Ceiling" Elements in a Room, I've stopped further development of the application until it's resolved
  • ~60 In-house users, but, I'm not sure if other users could have benefited from the application source code
  • If the application was fully developed it could have an efficiency savings of ~$250,000/year
  • No impact to Autodesk
  • Based on the financial impact, the sooner the better
  • Determining materials within a room, determining room binding object (when Volume isn't calculated) and providing clash detection capabilities between roof soffits and other elements
Anthony Tiefenbach
BIM Manager
HuntonBrady Architects
0 Likes
Message 6 of 6

JimJia
Alumni
Alumni

Dear Anthony,

 

I'm passing update message from engineering team, for your reference:

"Please check if the category is supported by the method ElementIntersectsFilter.IsCategorySupported and then do the follow up action. The subclass ElementIntersectsSolidFilter also follow this rule. In this case, the category is not supported by these 2 filters."

"Rhese 2 filters are leverage the "Interference check" feature, and the Roof Soffits is not support there. Please file an request. Thanks"

 

I am sorry to say that there is currently no API access to this functionality.


I submitted the wish list item CF-4694 [API wish: ElementIntersectSolidFilter supports OST_RoofSoffit category - 12230729] on your behalf for the functionality you suggest, as this issue requires exploration and possibly a modification to our software. Please make a note of this number for future reference.


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes