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

AVEVA™ Plant SCADA

IPen​.VerticalAxisAutoscale [Property][Get/Set]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets or sets whether the vertical axis will automatically calculate its physical limits based on the sample values within its internal cache.

Defined As

  • [VBA] Boolean VerticalAxisAutoscale

  • [Cicode] INT VerticalAxisAutoscale

  • [C++] VARIANT_BOOL VerticalAxisAutoscale

Execution Result

If the property get/set succeeds the return value will be Success. If the return variable is bad then the return value will be InvalidArgument. If the pen is deleted then the return value will be GeneralFailure.

Remarks

Setting this property will turn off interactive Scrolling (IPen.HorizontalAxisScroll) and Scaling (IPen.HorizontalAxisResize).

Limits

  • True (-1): Autoscale enabled

  • False (0): Autoscale disabled

Calling Syntax

Assumes you have passed a valid pen object into the function.

[VBA]

Sub Example(pen As Object)
Dim autoScale As Long
`Getting Property value
autoScale = pen.VerticalAxisAutoscale
`Setting Property value
pen.VerticalAxisAutoscale = True
End Sub

[Cicode]

FUNCTION Example(OBJECT hPen)
INT autoScale;
// Getting current property value
autoScale = _ObjectGetProperty(hPen, "VerticalAxisAutoscale");
// Setting Property
_ObjectSetProperty(hPen, "VerticalAxisAutoscale", -1);
END

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