RotationAngle Property
Description
Line, Polygon and PolyLine
Defines or returns the rotation angle of the following objects in degrees: Line, Polygon,
PolyLine.
The object is displayed in Runtime only rotated clockwise around the reference point by the
specified value (starting from the configured starting position).
T-piece
Defines or returns the orientation of a T-piece in degrees. The attribute can only assume one
of four values:
0 The standard position of the T-piece is the shape of the letter "T"
90 The "leg" of the "T" points towards the left
180 The "leg" of the "T" points upwards
270 The "leg" of the "T" points to the right
Other values are automatically converted to modulus 360 and rounded up or down to the
nearest permissible value.
The T-piece is shown rotated around the center point in the project and in Runtime.
Example:
The "PolyLineConfiguration()" procedure accesses the properties of the PolyLine object. In
this example the object will be rotated by 45° in Runtime:
Sub PolyLineConfiguration()
'VBA701
Dim objPolyLine As HMIPolyLine
Set objPolyLine = ActiveDocument.HMIObjects.AddHMIObject("PolyLine1", "HMIPolyLine")
With objPolyLine
.ReferenceRotationLeft = 50
.ReferenceRotationTop = 50
.RotationAngle = 45
End With
End Sub
VBA for Automated Configuration
4.4 The object model of the Graphics Designer
MDM - WinCC: Scripting (VBS, ANSI-C, VBA)
2274
System Manual, 11/2008,