DIAdem Help

Object: 2DAxisY

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

Object: 2DAxisY

The 2DAxisY object provides the y-axis for a 2D axis system in DIAdem REPORT. The 2DAxisY object is identical with the first element of the 2DAxisYAxisList collection.

The following example displays the horizontal offset and the names of all y-axes:

VBScriptPython

 

Dim oMyReportObj, oMyReportObjects, oMySubObjects, i, sOutput
sOutput = ""
Set oMyReportObjects = Report.ActiveSheet.Objects
For Each oMyReportObj in oMyReportObjects
  If oMyReportObj.ObjectType = eReportObject2DAxisSystem Then
    Set oMySubObjects = oMyReportObj.YAxisList
    For i = 1 to oMySubObjects.Count
      sOutput = sOutput & "Horizontal offset: " & oMySubObjects.Item(i).OffsetHorizontal & vbTab & _
                "Axis name: " & oMySubObjects.Item(i).Name & vbCrLf
    Next
  End If
Next
Call MsgBoxDisp(sOutput)