DIAdem Help

Property: LabelAtBegin for 2DCurve

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

Property: LabelAtBegin for 2DCurve

Specifies whether DIAdem labels a curve in a 2D axis system in DIAdem VIEW at the curve beginning.

You must assign the value eVIEWLabelRepetitionLength to the property LabelRepetitionMode so that DIAdem includes the property LabelAtBegin.

Object.LabelAtBegin
Object2DCurve
Object with this property
Object.LabelAtBeginBoolean with read and write access

The following example creates a 2D axis system with a labeled curve. The following example also labels the curve at the curve beginning and at the curve end:

VBScriptPython

 

Dim oCurveObj, oMyDisplayObj
View.Sheets(1).Areas(1).DisplayObjType = "CurveChart2D"
Set oMyDisplayObj = View.Sheets(1).Areas(1).DisplayObj

Set oCurveObj = oMyDisplayObj.Curves2D.Add("[1]/[1]","[1]/[2]")
oCurveObj.LabelMode = eVIEWLabelModeChannel 
oCurveObj.LabelChannelNumber = 3
oCurveObj.LabelChannelOrientation = "automatic"
oCurveObj.LabelRepetitionMode = eVIEWLabelRepetitionLength
oCurveObj.LabelIntervalLength = 23
oCurveObj.LabelAtBegin = TRUE
oCurveObj.LabelAtEnd = TRUE

Log in to get a better experience