Property: CategorySettings 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

Specifies the settings of a category in a spider axis system in DIAdem REPORT.

Set oCategorySettings = Object.CategorySettings
ObjectSpider
Object with this property
oCategorySettingsCategorySettings
Returned object

The following example generates a spider axis system with a Line type curve and configures the second category:

Dim oMyAxisSystem, oMyPosition, oMyCurve, oMyCategorySettings, oMyCategorie
Call Data.Root.Clear()
Call DataFileLoad("Example.tdm","TDM","")
Call Report.NewLayout()

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

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

Set oMyCategorySettings = oMyAxisSystem.CategorySettings
oMyCategorySettings.Channel.Reference = "[5]/[1]"
oMyCategorySettings.Axis.Scaling.Type = eSpiderScalingLinear

Set oMyCategorie = oMyCategorySettings.Categories
oMyCategorie.Count = 5
oMyCategorie.Item(2).Enable = True
oMyCategorie.Item(2).Name = "My Second Category"
oMyCategorie.Item(2).UnitString = "s"
MsgBox oMyCategorie.Item(2).Index

Call Report.Refresh()

WAS THIS ARTICLE HELPFUL?

Not Helpful