DIAdem Help

Object: 2DAxisSystem

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

Object: 2DAxisSystem

The 2DAxisSystem object provides a 2D axis system in DIAdem REPORT.

The following example generates a 2D axis system with a curve:

VBScriptPython

 

Dim oMy2DAxisSystem, oMyPos, oMy2DCurve
Call Report.NewLayout()
Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem")
Set oMyPos = oMy2DAxisSystem.Position.ByCoordinate
oMyPos.X1 = 20
oMyPos.X2 = 80
oMyPos.Y1 = 20
oMyPos.Y2 = 80
Set oMy2DCurve = oMy2DaxisSystem.Curves2D.Add(e2DShapeLine, "MyNew2DCurve")
oMy2DCurve.Shape.XChannel.Reference = "[1]/[1]"
oMy2DCurve.Shape.YChannel.Reference = "[1]/[2]"
Call Report.Refresh()