Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need the solution that adds all faces directly adjacent* to the faces of the selected PartFeature to a List(Of Face).
I'm using iLogic like this:
Imports System.Linq
AddReference "System.Core"
Dim AllFaces As New List(Of Face)
Dim oIPT As PartDocument=ThisDoc.Document
Dim oCD As ComponentDefinition=oIPT.ComponentDefinition
Dim oFtr As PartFeature
Dim MsgBody As String
While Answer<>vbCancel
AllFaces.Clear
MsgBody=""
oFtr = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kPartFeatureFilter, "")
AllFaces.AddRange(From f As Face In oFtr.Faces Select f)
MsgBody &= "The feature faces QTY = " & AllFaces.Count & vbCrLf
' AllFaces.AddRange ???
MsgBody &= "Faces Selected in Total = " & AllFaces.Count & vbCrLf
Answer=MsgBox(MsgBody & vbCrLf & "Select another feature?", MsgBoxStyle.OKCancel,"Face selection for """ & oFtr.Name & """:")
End While
... and need some hint for the commented line.
* I'm not 100% sure that word "adjacent" suits this case. Under adjacent face i mean face that touches the given one (has common edge or vertex). Maybe "CoFace" is more suitable word for this?
Please vote for Inventor-Idea Text Search within Option Names
Solved! Go to Solution.