DIAdem Help

Object: 2DXAxisScaledOutput

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

Object: 2DXAxisScaledOutput

The 2DXAxisScaledOutput object provides the scaling properties of the x-axis in a 2D axis system in scaled display in DIAdem REPORT. To enable the scaled display, use the UseScaledOutput property.

The following example enables the scaled display, defines a page format, generates a 2D axis system with a curve, and specifies the scaling properties:

VBScriptPython

 

Dim oMy2DAxisSystem, oMy2DCurve, oMyPos, oMyXScaling, oMyYScaling
Call Report.NewLayout()
Report.Settings.Page.Dimensions.UseScaledOutput = True
Report.Settings.Page.Dimensions.ScaledHeight = 26
Report.Settings.Page.Dimensions.ScaledWidth = 18
Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem")
Set oMyPos = oMy2DAxisSystem.Position.ByCoordinate
oMyPos.X1 = 2
oMyPos.X2 = 14
oMyPos.Y1 = 2
oMyPos.Y2 = 20
Set oMy2DCurve = oMy2DaxisSystem.Curves2D.Add(e2DShapeLine, "MyNew2DCurve")
oMy2DCurve.Shape.XChannel.Reference = "[1]/[1]"
oMy2DCurve.Shape.YChannel.Reference = "[1]/[2]"
Set oMyXScaling = oMy2DAxisSystem.XAxis.Scaling.ScaledOutput
oMy2DAxisSystem.Settings.AxisScaleMode = e2DAxisScalingModeForScaledOutput
oMyXScaling.AutoScalingType = eAxisAutoScalingScaledOutputBeginOriginTickAutomatic
oMyXScaling.AxisUnitsPerOutputLengthUnit = 5
Set oMyYScaling = oMy2DAxisSystem.YAxis.Scaling.ScaledOutput
oMy2DAxisSystem.Settings.AxisScaleMode = e2DAxisScalingModeForScaledOutput
oMyYScaling.AutoScalingType = eAxisAutoScalingScaledOutputBeginOriginTickAutomatic
oMyYScaling.AxisUnitsPerOutputLengthUnit = 3
Call Report.Refresh()

Log in to get a better experience