DIAdem Help

Property: AutoScalingType for 2DXAxisScaledOutput

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

Property: AutoScalingType for 2DXAxisScaledOutput

Specifies whether and how DIAdem REPORT specifies the origin, the begin, and the tick interval for scaled display of the x-axis.

Object.AutoScalingType
Object2DXAxisScaledOutput
Object with this property
Object.AutoScalingTypeSpecifies the type of scaling.
Enumeration with read and write access and the following selection terms:
0eAxisAutoScalingScaledOutputManualManual
1eAxisAutoScalingScaledOutputBeginOriginTickAutomaticBegin and tick distance automatic
2eAxisAutoScalingScaledOutputCompleteAutomaticFully automatic
3eAxisAutoScalingScaledOutputCustomUser-defined scaling

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

Log in to get a better experience