DIAdem Help

Property: CurrCurve for 2DCurves

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

Property: CurrCurve for 2DCurves

Returns the curve of a 2D axis system of DIAdem VIEW with the legend that includes the formula expression which uses this property.

Set o2DCurve = Object.CurrCurve
Object2DCurves
Object with this property
o2DCurve2DCurve
Returned object
Note  You only can use this property in a user command, or as a legend expression in a script expression. Enclose the legend expression in @@ characters.

The following example creates a 2D axis system with a curve including markers and creates a legend entry with the number of curve markers:

VBScriptPython

 

View.ActiveSheet.ActiveArea.DisplayObjType = "CurveChart2D"
Dim oMyChart: Set oMyChart = View.ActiveSheet.ActiveArea.DisplayObj

Dim oMyCurve: Set oMyCurve = oMyChart.Curves2D.Add("[1]/[1]","[1]/[2]")
oMyCurve.MarkerType = "square"

Dim oMyLegend: Set oMyLegend = oMyChart.LegendItems.Add("<freetext>")
oMyLegend.Title = "Marker interval"
oMyLegend.Format = "@@View.CurrSheet.CurrArea.DisplayObj.Curves2D.CurrCurve.MarkerIntervalPoints@@"

Log in to get a better experience