DIAdem Help

Property: Constants for CurveChart2D

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

Property: Constants for CurveChart2D

Specifies a constant in a 2D axis system in DIAdem VIEW.

Set oConstants = Object.Constants
ObjectCurveChart2D
Object with this property
oConstantsConstants
Returned object

The following example generates a 2D axis system with a curve and a constant parallel to the x-axis:

VBScriptPython

 

Dim oCurveObj, oMyDisplayObj, oMyConstant
View.Sheets(1).Areas(1).DisplayObjType = "CurveChart2D"
Set oMyDisplayObj = View.Sheets(1).Areas(1).DisplayObj
Set oCurveObj = oMyDisplayObj.Curves2D.Add("[1]/[1]","[1]/[2]")
Set oMyConstant = oMyDisplayObj.Constants.Add("10",1)
oMyConstant.Color = "green"