Object: 3DAxisZ
- Updated2024-09-12
- 2 minute(s) read
(ReportObjects | SelectedObjects) > 3DAxisSystem > 3DAxisList > Object: 3DAxisZ
Object: 3DAxisZ
The 3DAxisZ object provides the properties of the z-axis in a 3D axis system in DIAdem REPORT.
The following example generates a 3D axis system with a surface display and specifies the labels for the three axes:
| VBScript | Python |
Dim oMy3DAxisSystem, oMy3DCurve, oMyPos, oMyXLabel, oMyYLabel, oMyZLabel Call Data.Root.Clear() Call DataFileLoad(DataReadPath & "Report_Data.tdm","TDM","") Call Report.NewLayout() Set oMy3DAxisSystem = Report.ActiveSheet.Objects.Add(eReportObject3DAxisSystem,"My3DAxisSystem") Set oMyPos = oMy3DAxisSystem.Position.ByCoordinate oMyPos.X1 = 20 oMyPos.X2 = 80 oMyPos.Y1 = 20 oMyPos.Y2 = 80 Set oMy3DCurve = oMy3DAxisSystem.Curves3D.Add(e3DShapeSurface, "MyNew3DCurve") oMy3DCurve.Shape.XChannel.Reference = "[2]/[1]" oMy3DCurve.Shape.YChannel.Reference = "[2]/[2]" oMy3DCurve.Shape.ZChannel.Reference = "[2]/[3]" oMy3DCurve.Shape.DataStructure = e3DDataStructureMatrix Set oMyXLabel = oMy3DAxisSystem.AxisList.X.Label oMyXLabel.Text = "This is the x-axis" oMyXLabel.Font.Name = "Tahoma" oMyXLabel.Font.Size = 5 Set oMyYLabel = oMy3DAxisSystem.AxisList.Y.Label oMyYLabel.Text = "This is the y-axis" oMyYLabel.Font.Name = "Tahoma" oMyYLabel.Font.Size = 5 Set oMyZLabel = oMy3DAxisSystem.AxisList.Z.Label oMyZLabel.Text = "This is the z-axis" oMyZLabel.Font.Name = "Tahoma" oMyZLabel.Font.Size = 5 Call Report.Refresh()
Properties
Label | Line | Numbers | Scaling | TargetUnit | TickType | UseLabelAutoAngle | UseNumbersAutoPosition