Page 1 of 1

Get Reference Geometry Property

Posted: Fri Aug 10, 2018 10:19 am
by laual
Hello,

i need the size from a reference object, but getValue("", "size", ...) don't work.

In the XML File from the Panel is also no size value from the Reference, but theres the property "Geometry", which has the scale factors for the size.

Is it possible to read the geometry property from a reference objekt with a control script, i don't find anything in gedi?

Re: Get Reference Geometry Property

Posted: Fri Aug 10, 2018 11:34 am
by kilianvp
no a reference has no size attribute.

the geometry value is just a rotation matrix and doesn't contain the size of the reference.

Re: Get Reference Geometry Property

Posted: Fri Aug 10, 2018 11:50 am
by laual
ok

and how can i read the geometry value in control script ?

In the panel XML file it looks like this:



Test.xml
105 310
0.1822916666666667 0 0 0.1617283950617284 195.859375 169.8641975308642
0
AlignNone


I want to read the values 0.1822916666666667 and 0.1617283950617284.

Re: Get Reference Geometry Property

Posted: Mon Aug 13, 2018 9:04 am
by leoknipp
You cannot read the values for the transformation matrix in a CTRL script. There are no properties/functions to get those values. The transformation matrix contains information for changes of the position, scaling factors and other information.
Why do want to read this information?

Best Regards
Leopold Knipp
Senior Support Specialist

Re: Get Reference Geometry Property

Posted: Mon Aug 13, 2018 10:48 am
by kilianvp
you can't calculate the transformation matrix

Internally WinCC OA works with offsets which are unknow.

But you can generate the Panel and save it using writeToFile