DIAdem Help

Object: 2DSpecialCombination

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

Object: 2DSpecialCombination

The 2DSpecialCombination object provides the curve properties of a 2D axis system in the Special combination display mode in DIAdem REPORT.

The following example generates an axis system with a curve and displays the curve labels and the additional display mode Spikes .

VBScriptPython

 

Dim oMy2DAxisSystem, oMyCurve, oMyPos, oMyShape, oMyExtension
Call Report.NewLayout()
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(e2DShapeSpecialCombination, "MyCurve")
Set oMyShape = oMyCurve.Shape
oMyShape.XChannel.Reference = "[1]/[1]" 
oMyShape.YChannel.Reference = "[1]/[2]" 
Set oMyExtension = oMyCurve.Shape.Extensions
oMyExtension.Label.YValueVisible = True
oMyExtension.Label.YValueFormat = "d.dd"
oMyExtension.Label.Position.Type = e2DLabelPositionAtPoint
oMyExtension.Label.Repetition.Mode = e2DLabelRepetitionMaxNPoints
oMyExtension.Label.Repetition.NValue = 10
oMyExtension.AdditionalStyles.Type = e2DAdditionalStyleSpikes
Call Report.Refresh()

Returned From

2DCurve.Shape