Property: AutoScalingType for 2DXAxisScaledOutput
- Updated2024-09-12
- 1 minute(s) read
DIAdem REPORT > Properties > Property: AutoScalingType for 2DXAxisScaledOutput
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
Object | 2DXAxisScaledOutput Object with this property | ||||||||||||
Object.AutoScalingType | Specifies the type of scaling. Enumeration with read and write access and the following selection terms:
|
The following example enables the scaled display, defines a page format, generates a 2D axis system with a curve, and specifies the scaling properties:
VBScript | Python |
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