Method: UpdateScaling for Spider

DIAdem 2018 Help


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

DOWNLOAD (Windows Only)


DIAdem 2012 Help
DIAdem 2014 Help
DIAdem 2015 Help
DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help

Refreshes the values which DIAdem REPORT uses to automatically scale a spider axis system. You can use the values specified automatically, for example, for manual scaling.

Object.UpdateScaling
ObjectSpider
Object with this method

The following example generates a spider axis system and uses the rounded up and automatically specified scaling values for manual scaling:

Dim oMyAxisSystem, oMyCurve, oMyPos, oMyScaling
Call Data.Root.Clear()
Call DataFileLoad("Example.tdm","TDM","")
Call Report.NewLayout()

Set oMyAxisSystem = Report.ActiveSheet.Objects.Add(eReportObjectSpider,"MySpiderSystem")
Set oMyPos = oMyAxisSystem.Position.ByCoordinate
oMyPos.X1 = 20
oMyPos.X2 = 80
oMyPos.Y1 = 20
oMyPos.Y2 = 80

Set oMyCurve = oMyAxisSystem.CurvesSpider.Add(eSpiderShapeLine, "MyNewCurve")
oMyCurve.Shape.Channel.Reference = "[5]/[3]"

Call oMyCurve.Shape.Settings.Line.Color.SetPredefinedColor(eColorIndexBlue)
Set oMyScaling = oMyAxisSystem.CategorySettings.Axis.Scaling
Call oMyAxisSystem.UpdateScaling
oMyScaling.AutoScalingType = eAxisScalingSimpleManual 
oMyScaling.End = Int(oMyScaling.End) + 1

Call Report.Refresh()

See also

Objects Overview

WAS THIS ARTICLE HELPFUL?

Not Helpful