Quite a big subject. Suggest one way to get started is to click Tools/Macro/Start Recording, a dialogue box appears. You have to give a path where you want to store the macro. Click OK, then perform some interactions (for example, create a pad) and then click Tools/Macro/Stop Recording. Then...
Depending on what you want to do, one way might be to allow the end-user the chance to select the vertex of interest and decode it that way. If you want to do selection, use VBA or VB, display a panel telling the user to make the selection, and use the OK button event to carry out the...