Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

IProcessAnalyst​.LastSelectedPen [Property][Get]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Retrieves the last selected pen on the Process Analyst.

Defined As

  • [VBA] Object LastSelectedPen

  • [Cicode] OBJECT LastSelectedPen

  • [C++] IPen* LastSelectedPen

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.

Remarks

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.

Limits

  • A reference to the primary selected pen.

  • Invalid object when there are no pens on the display.

Calling Syntax

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

[VBA]

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

[Cicode]

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

In This Topic
TitleResults for “How to create a CRG?”Also Available in