Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Inventor 2022
API Visual Studio
i try to create a WorkPlane AddByPlaneAndPoint.
The Tricky thing is, that i want to select the MidPoint From Edges.
I have't find this.
This is my simple Code to Create WorkPlane AddByPlaneAndPoint.
With this Code is possible only to Select a End or Start Point.
Code:
Imports System.Runtime.InteropServices
Imports Inventor
Imports Microsoft.Win32
Module CommandFunctionButton_07
Public Sub CommandFunctionfweButton_07()
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 oWorkPointCenter As Vertex
oWorkPointCenter = g_inventorApplication.CommandManager.Pick(SelectionFilterEnum.kAllPointEntities, "Pick a Points1")
Dim oFaceTang As Face = CType(g_inventorApplication.CommandManager.Pick(SelectionFilterEnum.kPartFaceFilter, "Pick a Face1"), Face)
Dim oWorkPlaneCenter As WorkPlane
oWorkPlaneCenter = oCompDef.WorkPlanes.AddByPlaneAndPoint(oFaceTang, oWorkPointCenter, False)
End Sub
End Module
I have't find this in Object and Enums.
What is the Command for This?
Thanks for any Sugestion.
Solved! Go to Solution.