DIAdem Help

Property: Transparency for Segment

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

Property: Transparency for Segment

Specifies the percentaged transparency of the segments in a 2D axis system in DIAdem VIEW. If you assign the value 0 to the property, DIAdem does not display the segments transparent.

Object.Transparency
ObjectSegment
Object with this property
Object.TransparencyDouble with read and write access
Value range: 0 to 100
A value of 100 is completely transparent, a value of 0 is opaque.

The following example creates a 2D axis system with a curve and semi-transparent segments:

VBScriptPython

 

View.Sheets(1).Areas(1).DisplayObjType = "CurveChart2D"
Dim oMyDisplayObj : Set oMyDisplayObj = View.Sheets(1).Areas(1).DisplayObj
Call oMyDisplayObj.Curves2D.Add("[1]/[2]","[1]/[3])
Dim oMySegment : Set oMySegment = oMyDisplayObj.Segments.Add("[1]/[4]","[1]/[5],"X")
oMySegment.Color = "red"
oMySegment.Transparency = 50