DIAdem Help

Method: Item for PolarCurves

  • Updated2024-09-12
  • 2 minute(s) read

Method: Item for PolarCurves

Returns the PolarCurve object associated with a specific name or index in DIAdem VIEW.

Set oPolarCurve = Object.Item(NameOrIndex)
ObjectPolarCurves
Object with this method
NameOrIndexVariant
Specifies the name or the index of a specific polar curve.
oPolarCurvePolarCurve
Returned object
Note  You can always omit the Item method because it is the standard element of the collection.

The following example outputs a message which displays the channel names of the first curve of the polar axis system. The DisplayObj must be a Polar type:

VBScriptPython

 

Dim oMyCurve 
Set oMyCurve = View.ActiveSheet.ActiveArea.DisplayObj.CurvesPolar
Call MsgBoxDisp("Angle channel: " & oMyCurve.Item(1).AngleChannelName & " / Radius channel: " & oMyCurve(1).RadiusChannelName)