DIAdem Help

Object: DecorationText

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

Object: DecorationText

The DecorationText object provides a Text type decoration in an axis system in DIAdem VIEW. Use the DecorationText object to specify the text properties. Decorations, such as texts or graphics can be used in 2D Axis Systems, Polar Axis Systems, Orbit Axis Systems, and Shaft Centerline Axis Systems.

The following example creates an axis system with an orbit display and adds text:

VBScriptPython

 

Dim oMySheet, oMyChart, oMyDecoText
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.Name = "MySheet"
oMySheet.ActiveArea.DisplayObjType = "Orbit"
Set oMyChart = oMySheet.ActiveArea.DisplayObj
Set oMyDecoText = oMyChart.Decorations.Add(eVIEWDecorationTypeText,"DecoText")
oMyDecoText.Text = "Text as Decoration"

Returned From

Decorations.Add | Decorations.Item