Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I want to create a mate constraint between a workplane and a center point of circular edge.
The edge is being picked by the user, but how can I get the center point of this edge for the constraint creation?
Like in the code below, it will not work. The oWorkPlaneProxy is defined somewhere above, so that's not a problem.
oEdge2 = g_inventorApplication.CommandManager.Pick(SelectionFilterEnum.kPartEdgeCircularFilter, "Select first circular edge of second connection") Dim Point1 As Inventor.Point = oEdge2.Geometry.Center Dim oMate As MateConstraint oMate = oAsmCompDef.Constraints.AddMateConstraint(oWorkPlaneProxy, Point1, 0)
Regards
Alexandru
Autodesk Inventor 2015 Certified Professional
Solved! Go to Solution.