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

AVEVA™ Plant SCADA

IAnalogPen​.LineInterpolation [Property][Get/Set]

IAnalogPen​.LineInterpolation [Property][Get/Set]

  • Last UpdatedJul 18, 2023
  • 1 minute read

Gets or sets the drawing style used for drawing the connecting lines between points for this analog pen.

Defined As

  • [VBA] Long LineInterpolation

  • [Cicode] INT LineInterpolation

  • [C++] LineType LineInterpolation

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 the return value will be GeneralFailure.

Remarks

The LineInterpolation mode dictates how the two points of a line are joined when drawn. If Stepped, there will be two lines joining each point, one horizontal and one vertical. If Straight, only one line is used to directly connect the two points.

Calling Syntax

This example assumes there is a valid Analog Pen object to be passed into the example methods.

[VBA]

Sub Example(analogPen As Object)
.....Dim lineInterpolation As Long
.....`Getting Property value
.....lineInterpolation = analogPen.LineInterpolation
.....`Setting Property value
.....analogPen.LineInterpolation = 1
End Sub

[Cicode]

FUNCTION Example(OBJECT hAnalogPen)
.....// Getting property value
.....INT nInterpolation = _ObjectGetProperty(hAnalogPen, "LineInterpolation");
.....// Setting property value
....._ObjectSetProperty(hAnalogPen, "LineInterpolation", 1);
END

See Also

LineType [Enumeration]

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