DIAdem Help

Object: ShaftCenterline

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

Object: ShaftCenterline

The ShaftCenterline object provides access to a Shaft centerline axis system in DIAdem VIEW. Use the ShaftCenterline object to specify the properties of the axis system.

The following example creates a shaft centerline axis system with one curve:

VBScriptPython

 

Dim oMySheet, oMyObj
Call Data.Root.Clear()
Call DataFileLoad(ProgramDrv & "Examples\Data\Sound & Vibration\RotatingShaftAnalysis_001.TDM")
Call View.Sheets.RemoveAll()
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.ActiveArea.DisplayObjType = "ShaftCenterline"
Set oMyObj = oMySheet.ActiveArea.DisplayObj
Call oMyObj.CurvesShaftCenterline.Add("[1]/[2]","[1]/[3]")
oMyObj.AxisLabeling = True
oMyObj.DateTimePreference = eDateTimePreferenceAbsolute

Returned From

Area.DisplayObj