Rotate to Altitude and Azimuth Plugin for Sketchup

Subscribe to my Feed!

This Sketchup plugin will rotate either an object or a face to match the user’s selected altitude and azimuth. It works by first turning the altitude and azimuth into a vector and then doing a rotation transformation on the selected face so that the normal of the face matches the vector.

This can be useful for astronomy, archaeoastronomy, and solar energy designing.

A big thanks to Construsol for helping with this plugin’s development.

Click the link to download the “Rotate to Altitude and Azimuth Plugin(Rotate_to_Alt_and_Az.rb)”.

Miscellaneous Tips for Success

1. You must select a single face only when using this plugin.

2. If the face is inside a group, you must double click that group to access the face.

3. When using an altitude of either 90 or -90, you may find that the azimuth does not change when you try to rotate the face. Rest assured though that this orientation is still correct since the azimuth is irrelevant at this angle.

4. When rotating an object, the face you select determines that object’s final orientation. The behavior of the rotation can be unpredictable if you do multiple rotations on an object while selecting a different face for each rotation. Select the same face for each rotation if you want predictable results.

Example 1: Rotating Everything

For this example we will create a simple box and select one of its faces. Here I chose the yellow one on top. Next go to “Plugins” on the menu bar, then “Rotate to Altitude and Azimuth”, and, finally, click “Rotate Everything”.

img2C

The window below should open next. Here, type in an altitude and azimuth and select “South” as the direction for where the azimuth angle = 0. When tracking the locations of celestial objects in the sky, astronomers sometimes like to use south as 0 while other times they use north. This is why the plugin has an option to switch.

Sketchup’s default setting uses the dashed green line as south and the solid green line as north. In case you were wondering, the plugin will adapt if you change these defaults.

img1A

After clicking OK, the face will rotate to match the selected altitude and azimuth, as will everything attached.

img28

Example 2: Rotating the Face Only

For this example, we will rotate just a single face instead of the whole object. To do this, select a face, go to “Plugins” on the menu bar,  then “Rotate to Altitude and Azimuth”, and finally click “Rotate Face”.

img1F

The same window described earlier will pop up.

img1A[5]

Here is the object after the rotation. Notice how the face rotated while everything else stayed in place.

img21

This works with single faces also.

img23 img25

The End

Subscribe to my Feed!

2 Responses to Rotate to Altitude and Azimuth Plugin for Sketchup

  1. Bob Berard says:

    I have a couple of questions:
    1. If I have several different buildings in a model and I chose “select everything” will all of the buildings rotate or just the one with the selected face?
    2. If I have a complicated single building (for instance, with interior as well as exterior walls and windows as well as furnishings set up in different groups) will all the groups and parts of the building rotate?

    Thank you.

    • Gabriel Miller says:

      Hi Bob,

      1. You can only select one face at a time when using the plugin. I don’t remember exactly what will happen if you try to select several faces, but I doubt it will give you the results you want. If you select just one face, everything that is attached to the face should be rotated along with it though.

      2. The plugin is fairly basic, so I also don’t think it is smart enough to detect and rotate several groups at a time; however, go ahead and try it to see what happens.

      From what you described though, it sounds like Sketchup’s built in rotate tool will do what you want.

      Hope that helps,
      Gabriel

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">