DIAdem Help

Property: ScaledOutput for 2DAxisXScaling

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

Property: ScaledOutput for 2DAxisXScaling

Specifies 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.

Set o2DXAxisScaledOutput = Object.ScaledOutput
Object2DAxisXScaling
Object with this property
o2DXAxisScaledOutput2DXAxisScaledOutput
Returned object

The following example generates a 2D axis system with a curve and specifies the scaling properties:

VBScriptPython

 

Dim oMy2DAxisSystem, oMy2DCurve, oMyPos, oMyXScaling, oMyYScaling
Call Report.NewLayout()
Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem")
Set oMyPos = oMy2DAxisSystem.Position.ByBorder
oMyPos.Left = 20
oMyPos.Bottom = 20
oMyPos.Right = 20
oMyPos.Top = 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
oMyXScaling.AutoScalingType = eAxisAutoScalingScaledOutputCompleteAutomatic
Set oMyYScaling = oMy2DAxisSystem.YAxis.Scaling.ScaledOutput
oMyYScaling.AutoScalingType =eAxisAutoScalingScaledOutputCompleteAutomatic
Call Report.Refresh()

Log in to get a better experience