DIAdem Help

Object: DecorationPicture

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

Object: DecorationPicture

The DecorationPicture object provides a Graphic type decoration in an axis system in DIAdem VIEW. Use the DecorationPicture object to specify the properties of the graphic. 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 a graphic:

VBScriptPython

 

Dim oMySheet, oMyChart, oMyDecoPicture
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.ActiveArea.DisplayObjType = "Orbit"
Set oMyChart = oMySheet.ActiveArea.DisplayObj
Call oMyChart.CurvesOrbit.Add("[1]/[1]","[1]/[2]") 
Set oMyDecoPicture = oMyChart.Decorations.Add(eVIEWDecorationTypePicture,"DecoPicture")
oMyDecoPicture.FileName = ProgramDrv & "Examples/Documents/Example1.gif"

Returned From

Decorations.Add | Decorations.Item