PanelRef rotation or Shape group rotation

Find and share HowTos to various installations / configurations!
5 posts • Page 1 of 1
amichon
Posts:93
Joined: Sat May 17, 2014 3:49 pm

PanelRef rotation or Shape group rotation

Post by amichon »

Hello everybody,

Is there a solution to rotate a panelref programmatically otherwise than apply rotation for each panelref elements ?

Thanks a lot for your response

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: PanelRef rotation or Shape group rotation

Post by leoknipp »

A reference cannot be rotated as this attribute is not supported.
When adding a reference using addSymbol() a rotation angle can be defined.
Maybe this solution can be used to show a reference rotated.

Best Regards
Leopold Knipp
Senior Support Specialist

amichon
Posts:93
Joined: Sat May 17, 2014 3:49 pm

Re: PanelRef rotation or Shape group rotation

Post by amichon »

Thanks a lot Leo

I found a strange thing ...

if the symbol contains a primitive text with property Transformable=FALSE then the symbol is not rotated

amichon
Posts:93
Joined: Sat May 17, 2014 3:49 pm

Re: PanelRef rotation or Shape group rotation

Post by amichon »

Also

I found a second strange thing ...

if the symbol contains a rectangle who has dynamic position along X axis in function of datapoint value (no dynamic position along Y axis) then

1) if the symbol is rotated by 90 degrees then the dynamic position is inverted between X and Y. It is not normal
2) if the symbol is rotated by 45 degrees then the dynamic position is changed on X and Y axis. It is not normal

any idea ?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: PanelRef rotation or Shape group rotation

Post by leoknipp »

If you meant that you change the values for the attribute "position" then this position is always related to the screen and/or the main panel where the reference was loaded to.
There is no functionality to take into account that the reference was rotated. You have to implement it on your own in your scripts.

Best Regards
Leopold Knipp
Senior Support Specialist

5 posts • Page 1 of 1