Object: 2DYAxisScaledOutput

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help

The 2DYAxisScaledOutput object provides the scaling properties of a y-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:

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

WAS THIS ARTICLE HELPFUL?

Not Helpful