How to select faces contain same an edge ?

How to select faces contain same an edge ?

SandmanINV
Advocate Advocate
566 Views
2 Replies
Message 1 of 3

How to select faces contain same an edge ?

SandmanINV
Advocate
Advocate

Hello, 

I am using C# and VB.net to build API. I have an issue.

I can find an Edge, and after that I want select 1 or 2 or 3... faces which contain that edge.

So how can I do that ? Please give me an advice ?

Thank you very much, 

0 Likes
Accepted solutions (1)
567 Views
2 Replies
Replies (2)
Message 2 of 3

JhoelForshav
Mentor
Mentor
Accepted solution

Hi @SandmanINV 

Try this iLogic rule, I think it's what youre looking for 🙂

Dim oEdge As Edge = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kPartEdgeFilter, "Pick edge.")
Dim oCol As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection
For Each oFace As Face In oEdge.Faces
	oCol.Add(oFace)
Next
ThisDoc.Document.SelectSet.SelectMultiple(oCol)
Message 3 of 3

SandmanINV
Advocate
Advocate

Understood. Thank you very much.

0 Likes