Code for Rotation matrix (Account for DF rotation on Layout Element)

2577
1
Jump to solution
04-08-2015 12:57 PM
CarlSunderman
Occasional Contributor

I have a known page unit XY. What i need to do is figure out the rotation matrix code to apply the data frame rotation to my element page unit XY.

Example:

At Data Frame rotation of  0 rotation my point is X = 10.5659" and Y = 7.0324" and at Data Frame rotation of 12.14, my point is X = 10.6832" and Y = 7.481".

Although, I may have better luck posting this in a numpy or python specific forum.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
CarlSunderman
Occasional Contributor

Ok, so to answer my own question, i figured it out. To do this, i stored the rotation value in a variable, then had to set the data frame rotation to 0. Calculate my page units XY from map units coordinates XY. Then I calculated  the new XY and applied the rotation. Worked perfectly

View solution in original post

0 Kudos
1 Reply
CarlSunderman
Occasional Contributor

Ok, so to answer my own question, i figured it out. To do this, i stored the rotation value in a variable, then had to set the data frame rotation to 0. Calculate my page units XY from map units coordinates XY. Then I calculated  the new XY and applied the rotation. Worked perfectly

0 Kudos