DIAdem Help

Object: AttributeList

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

Object: AttributeList

The AttributeList object provides curve properties of expanding curves in DIAdem REPORT.

The following example enables the name-oriented mode with curve expansion and generates a 2D axis system with a curve definition. DIAdem plots two curves because the channel name of the loaded data set is located in two channel groups. DIAdem REPORT displays only the first curve in the legend:

VBScriptPython

 

Dim oMyReportSettings, oMy2DAxisSystem, oMyCurve, oMyPos, oMyShape, oMyCurveLegend
Call Data.Root.Clear()
Call DataFileLoad(DataReadPath & "TR_M17_QT_32-1.tdm","TDM","")
Call Report.NewLayout()
Set oMyReportSettings = Report.Settings
oMyReportSettings.CurveExpansion.Enable = True
oMyReportSettings.CurveExpansion.AttributeList.Enable = True

Set oMy2DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject2DAxisSystem, "My2DAxisSystem")
Set oMyPos = oMy2DAxisSystem.Position.ByCoordinate
oMyPos.X1 = 20
oMyPos.X2 = 80
oMyPos.Y1 = 20 
oMyPos.Y2 = 80
Set oMyCurve = oMy2DAxisSystem.Curves2D.Add(e2DShapeLine, "MyCurve")
oMyCurve.Shape.Settings.UseCurveExpansion = True
Set oMyShape = oMyCurve.Shape
oMyShape.XChannel.Reference = "" 
oMyShape.YChannel.Reference = "Temp_A"
Set oMyCurveLegend = oMy2DaxisSystem.CurveLegend
oMyCurveLegend.Visible = True
oMyCurveLegend.Settings.ShowOnlyFirstCurve = True
Call Report.Refresh()