(c# revit 2019)I want to make sure that it has touched the surface. I want ElementtouchedElementFilter, A surface face to each other, A surface joint together

(c# revit 2019)I want to make sure that it has touched the surface. I want ElementtouchedElementFilter, A surface face to each other, A surface joint together

klkl12234
Advocate Advocate
263 Views
1 Reply
Message 1 of 2

(c# revit 2019)I want to make sure that it has touched the surface. I want ElementtouchedElementFilter, A surface face to each other, A surface joint together

klkl12234
Advocate
Advocate

This is a code that examines interference.

 

ElementIntersectsElementFilter elementIntersectsElementFilter = elementIntersectsElementFilter = new ElementIntersectsElementFilter(fs);
var filters = new FilteredElementCollector(doc)
.WherePasses(elementIntersectsElementFilter)
.ToList();
if (filters.Count == 0)
{
continue;
}

 

This is a code that examines touched.

ElementTouchsElementFilter elementTouchsElementFilter = elementTouchsElementFilter = new ElementTouchsElementFilter(fs);
var filters = new FilteredElementCollector(doc)
.WherePasses(elementTouchsElementFilter)
.ToList();
if (filters.Count == 0)
{
continue;
}

However, there is no function called ElementTouchsElementFilter.

I want ElementTouchsElementFilter

I want to make sure that it has touched the surface.

What I'm working on is a square duct.

Is there a way to check the touched side?

Is there a way to test the a surface joint together?

Is there a way to test the surface face to each other?

Sorry, I am not good at English, so I used a translator.

 

 

0 Likes
Accepted solutions (1)
264 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

You could submit a wish for this functionality to the Revit Idea Station.

 

Whenever you require a new or enhanced Revit product or Revit API functionality, the Revit Idea Station is the place to go.

 

Please search there for a corresponding wish list entry for the suggested functionality and add your comments to it, or create a new one, if none already exists:

 

https://forums.autodesk.com/t5/revit-ideas/idb-p/302

 

Tag it as an API wish:

 

https://forums.autodesk.com/t5/revit-ideas/idb-p/302/tab/most-recent/label-name/api

 

Ensuring that a wish gets as many votes as possible helps underline its importance to you and the rest of the developer community.

 

The Revit Idea Station is currently one of the main driving input forces for Revit API enhancements.

 

The Revit development team looks there. Your comment here in the discussion forum might be overlooked.

 

Thank you!

 

It sounds as if your needs are pretty specific and you need precise results.

 

In that case, to move forward faster, I would suggest using the existing bounding box, intersection, and containment filters for a rough first approximation and adding your own more careful and precise geometric analysis afterward.

 

For the rectangular planar faces of a rectangular duct, this kind of geometric analysis is not very hard to implement yourself.

 

Good luck and have fun!

 

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