DIAdem Help

Method: ChangeShape for 3DCurves

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

Method: ChangeShape for 3DCurves

Changes the display mode of a curve in a 3D axis system in DIAdem REPORT.

Set o3DCurve = Object.ChangeShape(NameOrIndex, ShapeType)
Object3DCurves
Object with this method
NameOrIndexVariant
Specifies the name or the index of the 3D curve.
ShapeTypeEnumeration with the following selection terms:
 0
e3DShapeSurface 
Surface
 1
e3DShapeIsolines 
Isolines
 2
e3DShapeWaterfall 
Waterfall
 3
e3DShapeBars 
Bars
 4
e3DShapeMatrix2D 
2D matrix
 5
e3DShapeSpikes 
Spikes
 6
e3DShapeLine 
3D curve
 7
e3DShapeVector 
Vector
 8
e3DShapePoints 
Points
 9
e3DShapeCharacteristicDiagram 
Characteristic diagram
 10
e3DShapeCoordinate 
Coordinate
o3DCurve3DCurve
Returned object

The following example generates a 3D axis system with a curve and changes the display mode of the curve:

VBScriptPython

 

Dim oMy3DAxisSystem, oMy3DCurve
Call Data.Root.Clear()
Call DataFileLoad(DataReadPath & "Report_Data.tdm","TDM","")
Call Report.NewLayout()
Set oMy3DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject3DAxisSystem, "MyAxisSystem")
Set oMy3DCurve = oMy3DAxisSystem.Curves3D.Add(e3DShapeLine, "My3DCurve")
oMy3DCurve.Shape.XChannel.Reference = "[3]/[1]"
oMy3DCurve.Shape.YChannel.Reference = "[3]/[2]"
oMy3DCurve.Shape.ZChannel.Reference = "[3]/[3]"

Call Report.Refresh()
Call Pause(5)
Call oMy3DAxisSystem.Curves3D.ChangeShape("My3DCurve",e3DShapeSpikes)
Call Report.Refresh()

Log in to get a better experience