Code:
Option ExplicitPrivate Sub SelWorkPlane()
Dim oApp As Inventor.Application
Set oApp = ThisApplication
Dim oAssDoc As AssemblyDocument
Set oAssDoc = oApp.ActiveDocument
Dim oOcc As ComponentOccurrence
Set oOcc = oApp.CommandManager.Pick(kAssemblyLeafOccurrenceFilter, "Bitte Bauteil auswählen")
If Not oOcc.DefinitionDocumentType = kPartDocumentObject Then
Call MsgBox("Kein Bauteil gewählt.", vbCritical, "WorkPlaneProxy")
Exit Sub
End If
Dim oOccDef As PartComponentDefinition
Set oOccDef = oOcc.Definition
Dim oWorkPlane As WorkPlane
Set oWorkPlane = oOccDef.WorkPlanes.Item("ArbeitsEbene1")
Dim oWorkPlaneProxy As WorkPlaneProxy
Call oOcc.CreateGeometryProxy(oWorkPlane, oWorkPlaneProxy)
Call oAssDoc.SelectSet.Clear
Call oAssDoc.SelectSet.Select(oWorkPlaneProxy)
End Sub