- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Inventor 2022
API VB.NET Visual Studio
I try to Get a One Side of Edges from a Face.
As You can See, this side in this case has 2 Edges.
Part_A
So i want to Get One of them and Automaticly get the Other one, very simple
But in This Face the Edge Has no TangentiallyConnected to the Second One!
But If i make a Body with Thicknes Feature From this Face, Then This Edge has TangentiallyConnected Edges.
If you Pick up Edge from a Body, work Better, But not Perfect.
Part_B
My Question is, Know Someone a Solution to Get All Edges From One Side.
For Example, that means, that if a Vector From 1Edge has Angle to 2Edge something abot 90°, than Break
Or Maybe is Something with a Tolerance for the TangentiallyConnected Edges.
Or with kAllConcave or kAllConvex
This is my Code:
But Not Work Propely:
Dim oPartDoc As PartDocument = g_inventorApplication.ActiveDocument
Dim oCompDef As PartComponentDefinition = oPartDoc.ComponentDefinition
Dim oTO As TransientObjects = g_inventorApplication.TransientObjects
Dim oTG As TransientGeometry = g_inventorApplication.TransientGeometry
Dim oBRep As TransientBRep = g_inventorApplication.TransientBRep
Dim oEdgeOrigin As Edge = g_inventorApplication.CommandManager.Pick(SelectionFilterEnum.kPartEdgeFilter, "Pick a Edge")
Dim oEdgeColl As EdgeCollection = oEdgeOrigin.TangentiallyConnectedEdges
MsgBox("oEdgeColl Count " & oEdgeColl.Count)
Dim oSketch As Sketch3D = oCompDef.Sketches3D.Add
For i = 1 To oEdgeColl.Count
Dim oEdge As Edge = oEdgeColl.Item(i)
Dim oEntity As SketchEntity3D = oSketch.Include(oEdge)
Next
The Thing is , i want to Automate this Proces, and it not Work for all Faces.
This is only a Sample, to show a Face, that has not TangentiallyConnected Edges, and it happens from Time to Time.
Thanks for Any Suggestion
Solved! Go to Solution.