DIAdem Help

Method: Add for PolarCurves

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

Method: Add for PolarCurves

Adds an object to the PolarCurves collection and returns a PolarCurve object in the script interface of DIAdem VIEW.

Set oPolarCurve = Object.Add(XNameOrNo, YNameOrNo)
ObjectPolarCurves
Object with this method
XNameOrNoVariant
Specifies the name or the number of the x-channel to be displayed.
YNameOrNoVariant
Specifies the name or the number of the y-channel to be displayed.
oPolarCurvePolarCurve
Returned object

The following example creates a new worksheet containing a polar axis system with a curve:

VBScriptPython

 

Call View.Sheets.RemoveAll
Dim oMySheet: Set oMySheet = View.Sheets.Add("NewSheet") 
oMySheet.ActiveArea.DisplayObjType = "Polar" 
Call oMySheet.ActiveArea.DisplayObj.CurvesPolar.Add("[1]/[1]","[1]/[2]")