Retrieves the last selected pen on the Process Analyst.
If the property get succeeds the return value will be Success. If the return variable is bad then the return value will be InvalidArgument.
The last selected pen is also referred to as the "primary" selection. If there are no pens in the view, an invalid object will be returned.
Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".
Dim selectedPen As Object
`Retrieve primary selection
Set selectedPen = myPage_AN35.LastSelectedPen
OBJECT hProcessAnalyst = ObjectByName("AN35");
// Retrieve primary selection
selectedPen = _ObjectGetProperty(hProcessAnalyst, "LastSelectedPen");