# Rotation affecting size

**URL:** <https://forums.sketchup.com/t/rotation-affecting-size/11945>\
**Category:** Dynamic Components\
**Created:** [June 8, 2015, 2:51am UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945 "2015-06-08T02:51:16Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![labegf](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@labegf](https://forums.sketchup.com/u/labegf)\
**Post date:** [June 8, 2015, 2:51am UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/1 "2015-06-08T02:51:17Z")

</div>

Hi Huys, I’m getting crazy trying to rotate a part in my model.

I’ve read a lot of posts and forums and I didn’t find anyone with the same problem. It’s simple: I just want to rotate a window in -45,-90,0 degrees, like in the enclosed file below.

As you can see, when we click in the window using “Interact Tool”, the dimensions of the wall change. At each click, the dimensions continues changing. But, there’s no reason for this counter-effect in the walls.

Please, try it and let me know if you see the same problem. I’m using Sketchup Pro 2015.

Do you know why it’s happening?

[Simple Rotation.skp](https://forums.sketchup.com/uploads/short-url/l199F1GsAM8yOcw2eyCT3UkYura.skp) (21.1 KB)

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [June 8, 2015, 3:54am UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/2 "2015-06-08T03:54:29Z")

</div>

the object scales after the first interaction, DC1 updates lenY to the open door bounding box size which in turn scales the door. You need to restrict the door size and wall thickness

PS dont place cm after the values

[Simple Rotation.skp](https://forums.sketchup.com/uploads/short-url/id9igqIbYhJTULQ0OwVmZZzyxwm.skp) (22.3 KB)

---

<div class="post-metadata">

**Author:** ![labegf](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@labegf](https://forums.sketchup.com/u/labegf)\
**Post date:** [June 8, 2015, 11:03am UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/3 "2015-06-08T11:03:29Z")

</div>

Thanks pcmoor, it’s working.

But, sincerely, I’m not comfortable with the solution because if I need to resize the part, I’ll need to edit in the component attributes.

I will use DC a lot from now on, and I’m worried of the “work around” I’ll have to use, restricting the developments. This example is a really simple rotation and I can’t understand why it don’t work perfectly.

Do you think it’s a “bug” of the Sketchup version I’m using (Pro 2015)?

---

<div class="post-metadata">

**Author:** ![TIG](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tig/32/198_2.png) [@TIG](https://forums.sketchup.com/u/TIG)\
**Post date:** [June 8, 2015, 11:32am UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/4 "2015-06-08T11:32:02Z")

</div>

```
ANIMATE("RotZ", -45, -90, 0)

```

Set as the `onClick` within ‘_WINDOW_’ works.  
What do you need to refer back to the enclosing ‘_DC1_’ ?

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [June 8, 2015, 11:51am UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/5 "2015-06-08T11:51:06Z")

</div>

I assume that resizing is the term you are using for scaling, so then you need to become familiar with the current(“attribute”) formula. I am assuming you are using centimeters, so one needs to multiply this by 2.54 otherwise if inches don’t worry

.[Simple Rotation (1).skp](https://forums.sketchup.com/uploads/short-url/rst4vEsLZYEy1IwgqlkRiwPDNVK.skp) (24.0 KB)

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [June 8, 2015, 12:36pm UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/6 "2015-06-08T12:36:29Z")

</div>

making the outer group a component, and use of current makes the object more stable.

[Simple Rotation (1).skp](https://forums.sketchup.com/uploads/short-url/5hLjM6gLfXs5GBXbunQlNEqYPX7.skp) (26.8 KB)

There are some issues with scaling DCs as mentioned in a previous post

> [@DC bug when scaling a parent from a child](http://forums.sketchup.com/t/dc-bug-when-scaling-a-parent-from-a-child/11911):
>
> [video of DC scale bug: when a child’s scalar value is used in a formula by its parent, the parent’s scalar value is not calculated correctly](https://vimeo.com/129976944)

However depending on your model requirements a solution usually can be made, so continue to post your models and explain what you want them to do

---

<div class="post-metadata">

**Author:** ![labegf](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@labegf](https://forums.sketchup.com/u/labegf)\
**Post date:** [June 8, 2015, 2:26pm UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/7 "2015-06-08T14:26:47Z")

</div>

Hi guys. Lets go to my real case.

I want to animate a “clothes line” switching it in the two positions, like in the picture below?

 ![](https://global.discourse-cdn.com/sketchup/original/2X/9/9849e050bc4a8805b42b9484338c1433cb09b7a7.png)

The “Component Attributes” are:

 ![](https://global.discourse-cdn.com/sketchup/original/2X/e/e0b5b59b2460449b9bb996248f34ca656e410bb4.png)

Theorically, it should work perfectly, but it’s not working as expected because in the opened position, it also changes the distance from the wall:

 ![](https://global.discourse-cdn.com/sketchup/original/2X/4/4847d4b3b03c44ede6a276ac1ba09edd7b0bb40a.png) [Área de Serviço.skp](https://forums.sketchup.com/uploads/short-url/qjVfXooQDZDsLhwDiexlB6SymEb.skp) (936.5 KB)

I’ve already double checked the component axes and it seems to be correct.

---

<div class="post-metadata">

**Author:** ![slbaumgartner](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/slbaumgartner/32/7302_2.png) [@slbaumgartner](https://forums.sketchup.com/u/slbaumgartner)\
**Post date:** [June 8, 2015, 3:10pm UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/8 "2015-06-08T15:10:20Z")

</div>

If you look at your middle picture, it is evident that the axis origin is at the outside of the rack. That is the center used for the rotation. If you want to rotate around a point on the wall, you need to put the origin on the wall, not the outer surface. It does seem odd that the farther dimension displays as 5mm after the rotation though. That suggests things are not quite aligned.

[edit] Indeed, looking closely, the green axis of the rack is not aligned with its front edge. That’s what causes the far dimension to change.

---

<div class="post-metadata">

**Author:** ![labegf](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@labegf](https://forums.sketchup.com/u/labegf)\
**Post date:** [June 8, 2015, 3:32pm UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/9 "2015-06-08T15:32:09Z")

</div>

Hi slbaumgartner, your comments are interesting: axis not aligned.

But, the green axis is in the right position, as you can see in the picture below. Note that this axe is in the two corners of the rack, that are not in the wall (it’s correct, because this is where I want it become the origin of the rotation)

 ![](https://global.discourse-cdn.com/sketchup/original/2X/5/519e87c406ceb23e9a8f68b247f90c19e027ed98.png)

It seems that, besides the correct position of the axis, when I click in the part, it considers another axis. Is it possible? It should refers to it own axis right?

---

<div class="post-metadata">

**Author:** ![slbaumgartner](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/slbaumgartner/32/7302_2.png) [@slbaumgartner](https://forums.sketchup.com/u/slbaumgartner)\
**Post date:** [June 8, 2015, 3:37pm UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/10 "2015-06-08T15:37:48Z")

</div>

I opened your model, drew a construction line along the front edge of the rack, and then zoomed in very close a little distance from the component’s origin. I can see that the axis diverges from the construction line, meaning they are not aligned. The difference is very small, hence not easy to see.

 ![](https://global.discourse-cdn.com/sketchup/original/2X/5/5090d97082a4b5586904fec215d578e1f445a283.png)

---

<div class="post-metadata">

**Author:** ![labegf](https://avatars.discourse-cdn.com/v4/letter/l/9de053/32.png) [@labegf](https://forums.sketchup.com/u/labegf)\
**Post date:** [June 9, 2015, 3:14am UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/11 "2015-06-09T03:14:36Z")

</div>

Hi guys.

I’ve created a completely new design and added more features on it, allowing the user to resize it dynamically (check the “Component Options” of the design below). Now you can resize and define the space between the lines.

[All new.skp](https://forums.sketchup.com/uploads/short-url/1YOmZPcz4rYwCoj1lywnMQfaAt7.skp) (94.9 KB)

My last question: why sometimes the the “Component Options” window is empty, even knowing that the DC has options that can be modified?

Thanks all of your for your support.

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [June 9, 2015, 3:30am UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/12 "2015-06-09T03:30:08Z")

</div>

> [@labegf](#):
>
> My last question: why sometimes the the “Component Options” window is empty, even knowing that the DC has options that can be modified?

A behavior which crops up now and again, a bug that has been observed but apparently not resolved

> [@Dynamic Components assigned Options (X axes width) wont Show?](http://forums.sketchup.com/t/dynamic-components-assinged-options-x-axes-width-wont-show/9850):
>
> [[Creating Dynamic Components -1] ](https://www.youtube.com/watch?v=fsBpIPnF31A) Hello my first time attempting to work with Dynamic Components and YEP!! STUCK!! I am following along with a SU You Tube video: Creating Dynamic Componets-1. A simple box and I have assigned its Position and in an attempt to allow four different widths for the X axes.( At around the 4:25 mark) I have the details icon on its line and have gone back and hit apply 3 times now. From the screen shots you can see the component (box) is selected but the Co…

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [June 9, 2015, 3:42am UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/13 "2015-06-09T03:42:20Z")

</div>

I jumped before looking at your model, You need to transfer data from the parent (all new) to observe options at this level, otherwise you will have to use outliner or click into the Varal (child level) to see the attribute options.

 ![](https://global.discourse-cdn.com/sketchup/original/2X/8/849e1eaa9c5337c208dd44f6c79bba1b87e9cfa2.JPG)

Best to just explode “all new” as not needed

---

<div class="post-metadata">

**Author:** ![mrwmrutski](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/mrwmrutski/32/256759_2.png) [@mrwmrutski](https://forums.sketchup.com/u/mrwmrutski)\
**Post date:** [June 9, 2015, 9:36pm UTC](https://forums.sketchup.com/t/rotation-affecting-size/11945/14 "2015-06-09T21:36:20Z")

</div>

The issue I had with DC`s had stopped, but it took me going back to them everyday “To Check” to see if it would still do it. Then I did not use them for two weeks and when I went to select the Options to change their widths they were not visible again!! So I am just guesting you need to use them every other day so SU remembers (Joking)!! At least I realize now I was not losing my mind…Peace…
