How to access a created property manager features?

Greetings all,

I have created a property manager that has 2 selection boxes and a button. The selection boxes are limited to only edges and single selections each selection box.

My work is in VB.net.

FYI that combo box PIN 1 and PIN 2 is just there for a future use and does not participate with the code in question.

I have played extensively with variations of the following within the "Add Pins" Button subroutine:

        Dim swApp As SldWorks

        Dim swModel As ModelDoc2

        Dim swSelMgr As SelectionMgr

        Dim swFeat As Feature

        Dim the_edge As Edge

        Dim instance As IModelDocExtension

        Dim Append As Boolean = False

        Dim Mark As Integer = 0

        Dim Callout As Callout = Nothing

        Dim SelectOption As Integer = 0

        Dim value As Boolean

            swApp = GetObject("", "SldWorks.Application")

            swModel = swApp.ActiveDoc

            swSelMgr = swModel.SelectionManager

            instance = swModel.Extension

            pm_Selection.SetSelectionFocus()

            pm_Selection.SetSelectedItem(0, True)

            'Dim test As Integer = pm_Selection.SelectionIndex(0)

            swFeat = CType(pm_Selection.GetSelectedItems(0), Feature)

            value = swFeat.Select2(False, 0)

            MsgBox(value)

            pm_Selection.GetSelectedItems()

            swFeat = swSelMgr.GetSelectedObject6(0, -1)

            MsgBox(swFeat.GetID.ToString)

Please dont read too much in the code as it has changed a million times and I am not sure if what you see above even works in its current state.

I have tried to utilize the property manager selection boxes to select the edges in Solidworks and then grabbing them there but I am at a complete loss.

Simply put, how do I programmatically utilize each of the items in the selection boxes to perform other functions like measuring them, create planes, points etc?

Your help is greatly appreciated!

Danny B

SolidworksApi macros