DIAdem Help

Object: 2DShapeObject

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

Object: 2DShapeObject

The 2DShapeObject object provides the properties of the curve in a 2D axis system in DIAdem REPORT.

The 2DShapeObject object corresponds to one of the following objects:

2DBars (IRepD2ShapeObjBarsInt) Bars
2DBarsHorizontal (IRepD2ShapeObjBarsHorizontalInt) Horizontal bars
2DConstant (IRepD2ShapeObjConstantInt) Constant
2DCoordinate (IRepD2ShapeObjCoordinateInt) Coordinate
2DDifferential (IRepD2ShapeObjDifferentialInt) Differential
2DFilledArea (IRepD2ShapeObjFilledAreaInt) Filled area
2DGroupedBars (IRepD2ShapeObjBarsGroupedInt) Grouped bars
2DLine (IRepD2ShapeObjLineInt) Line
2DLineAndPoints (IRepD2ShapeObjLineAndPointsInt) Line and points
2DOutlineBars (IRepD2ShapeObjOutlineBarsInt) Outlined bars
2DOutlineBarsHorizontal (IRepD2ShapeObjOutlineBarsHorizontalInt) Horizontal outlined bars
2DSpecialCombination (IRepD2ShapeObjSpecialCombinationInt) Special combination
2DSpikes (IRepD2ShapeObjSpikesInt) Spikes
2DSpikesHorizontal (IRepD2ShapeObjSpikesHorizontalInt) Horizontal spikes
2DStackedBars (IRepD2ShapeObjBarsStackedInt) Stacked bars

The following example generates an axis system with a curve and assigns two channels to this curve:

VBScriptPython

 

Dim oMy2DAxisSystem, oMyCurve, oMyPos, oMyShape
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(e2DShapeLine, "MyCurve")
Set oMyShape = oMyCurve.Shape
oMyShape.XChannel.Reference = "[1]/[1]"
oMyShape.YChannel.Reference = "[1]/[2]"
Call Report.Refresh()

Returned From

2DCurve.Shape