Kkula
Browse Questions » WinCC Unified Systems: Size From Template Towards be used inside the Template

About User

Questions Asked: 3.6K

Answers Given: 0

0
  • Open
  • New

WinCC Unified Systems: Size From Template Towards be used inside the Template

Hello,
So my topic description might be a little vague, but what I mean is the following.
A faceplate can have any size on the HMI screens. The engineer can make it bigger or smaller. But, the contents of the faceplate actually don't scale accordingly. 
So my question, can I somehow register and use the properties of the faceplate, namely the height and the width, and use those values inside my faceplate so I can dimension/scale the components inside the faceplate accordingly.
I tried using the following:
Faceplate -> Events -> Script on 'Loaded'
 
Tag("Height").Write(Faceplate.Properties.Height);   //With "Height" being a faceplate internal tag.
Tag("Width").Write(Faceplate.Properties.Width);   //With "Width" being a faceplate internal tag.
 
But this does not seem to work. 
Anyone got any better ideas?
(As a annoying work around, off course I could make a property interface tag, but than you would have to type the actual pixels in the interface itself. If an engineer drags the faceplate a little bigger or smaller, the values aren't accurate anymore...)

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(0)