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?
Get Reference Geometry Property
Search
Re: Get Reference Geometry Property
no a reference has no size attribute.
the geometry value is just a rotation matrix and doesn't contain the size of the reference.
the geometry value is just a rotation matrix and doesn't contain the size of the reference.
Re: Get Reference Geometry Property
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.
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
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
Why do want to read this information?
Best Regards
Leopold Knipp
Senior Support Specialist
Re: Get Reference Geometry Property
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
Internally WinCC OA works with offsets which are unknow.
But you can generate the Panel and save it using writeToFile