See also
Document Object (Page 1847)
VBA Reference (Page 1664)
Editing Layers with VBA (Page 1603)
SetDeclutterObjectSize Method
Description
Specifies the size area for fading in and out of objects in the specified picture. If height and
width of the object are outside the specified size area, the objects are faded out.
The "ObjectSizeDecluttering" property must be set to TRUE.
syntax
Expression.
SetDeclutterObjectSize(Min, Max)
Expression
Necessary. An expression or element which returns an object of the "Document" type.
Parameters
Parameter (Data Type) Description
Min (Long) Lower size range in pixels.
Max (Long) Upper size range in pixels.
Example:
In the following example the settings for the lowest layer are configured in the active picture:
Sub ConfigureSettingsOfLayer()
'VBA190
Dim objLayer As HMILayer
Set objLayer = ActiveDocument.Layers(1)
With objLayer
'Configure "Layer 0"
.MinZoom = 10
.MaxZoom = 100
.Name = "Configured with VBA"
End With
'Define decluttering of objects:
With ActiveDocument
.LayerDecluttering = True
VBA for Automated Configuration
4.4 The object model of the Graphics Designer
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
1798
System Manual, 11/2008,