Using the Process Analyst > Process Analyst for Developers > Automation Model > IProcessAnalyst.LastSelectedPen [Property][Get]

IProcessAnalyst.LastSelectedPen [Property][Get]

Retrieves the last selected pen on the Process Analyst.

Defined As

Execution Result

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.


Calling Syntax

Assumes you have a page called "myPage" and the Process Analyst has been named "AN35".


Sub Example()
Dim selectedPen As Object
`Retrieve primary selection
Set selectedPen = myPage_AN35.LastSelectedPen
End Sub


FUNCTION Example()
OBJECT hProcessAnalyst = ObjectByName("AN35");
OBJECT selectedPen;
// Retrieve primary selection
selectedPen = _ObjectGetProperty(hProcessAnalyst, "LastSelectedPen");