Get Reference Geometry Property

Discussion about recent product features & solutions!
Search

Post Reply
5 posts • Page 1 of 1
laual
Posts: 6
Joined: Fri Apr 26, 2013 7:47 am

Get Reference Geometry Property

Post 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?

User avatar
kilianvp
Posts: 443
Joined: Fri Jan 16, 2015 10:29 am

Re: Get Reference Geometry Property

Post 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.

laual
Posts: 6
Joined: Fri Apr 26, 2013 7:47 am

Re: Get Reference Geometry Property

Post 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.

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Get Reference Geometry Property

Post 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

User avatar
kilianvp
Posts: 443
Joined: Fri Jan 16, 2015 10:29 am

Re: Get Reference Geometry Property

Post 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

Post Reply
5 posts • Page 1 of 1