Method: Move for 3DCurves
- Updated2024-09-12
- 1 minute(s) read
DIAdem REPORT > Methods > Method: Move for 3DCurves
Method: Move for 3DCurves
Moves in a 3D axis system in DIAdem REPORT a curve to a different position.
Object.Move(NameOrIndexFrom, NameOrIndexTo)
Object | 3DCurves Object with this method |
NameOrIndexFrom | Variant Specifies the name or the index of the curve that is to be moved. |
NameOrIndexTo | Variant Specifies the name or the index of the curve to where DIAdem shifts the curve to be moved. |
The following example creates a 3D axis system with two curves and shifts the second curve to the position of the first curve:
VBScript | Python |
Dim oMy3DAxisSys, oMyPosition, oMyCurve1, oMyCurve2, oMy3DCurves Call Data.Root.Clear() Call DataFileLoad(DataReadPath & "Report_Data.tdm","TDM","") Call Report.NewLayout() Set oMy3DAxisSys = Report.ActiveSheet.Objects.Add(eReportObject3DAxisSystem,"My3DAxisSystem") Set oMyPosition = oMy3DAxisSys.Position.ByCoordinate oMyPosition.X1 = 10 oMyPosition.X2 = 40 oMyPosition.Y1 = 10 oMyPosition.Y2 = 40 Set oMyCurve1 = oMy3DAxisSys.Curves3D.Add(e3DShapeLine, "MyNewCurve1") oMyCurve1.Shape.XChannel.Reference= "[2]/[1]" oMyCurve1.Shape.YChannel.Reference = "[2]/[2]" oMyCurve1.Shape.ZChannel.Reference = "[2]/[3]" Set oMyCurve2 = oMy3DAxisSys.Curves3D.Add(e3DShapeLine, "MyNewCurve2") oMyCurve2.Shape.XChannel.Reference= "[3]/[1]" oMyCurve2.Shape.YChannel.Reference = "[3]/[2]" oMyCurve2.Shape.ZChannel.Reference = "[3]/[3]" Set oMy3DCurves = oMy3DAxisSys.Curves3D Call oMy3DCurves.Move(1,2) Call Report.Refresh()