DIAdem Help

Collection: Areas

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

Collection: Areas

The Areas object provides a collection of all the areas in DIAdem VIEW. Use the areas collection to delete areas. To create new areas, split an existing Area Object.

The following example divides the existing area and creates a new area with a 2D curve:

VBScriptPython

 

Dim oMySheet, oMyChart, oMyArea, oMyNewArea, oMyCurve
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.Name = "MySheet"
Set oMyArea = oMySheet.ActiveArea
Set oMyNewArea = oMyArea.SplitRight("NewArea", 0.5)
oMyNewArea.Active = True
oMyNewArea.DisplayObjType = "CurveChart2D"
Set oMyChart = oMyNewArea.DisplayObj
Set oMyCurve = oMyChart.Curves2D.Add("[1]/[1]","[1]/[2]")

Properties

Count

Methods

Copy | Exists | Item | Move | Remove | RemoveAll

Returned From

Sheet.Areas