# Calculating volume - apply transformation of a parent to a child

**URL:** <https://forums.sketchup.com/t/calculating-volume-apply-transformation-of-a-parent-to-a-child/345003>\
**Category:** Ruby API\
**Created:** [February 27, 2026, 1:27am UTC](https://forums.sketchup.com/t/calculating-volume-apply-transformation-of-a-parent-to-a-child/345003 "2026-02-27T01:27:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrwiacek](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mrwiacek](https://forums.sketchup.com/u/mrwiacek)\
**Post date:** [February 27, 2026, 1:27am UTC](https://forums.sketchup.com/t/calculating-volume-apply-transformation-of-a-parent-to-a-child/345003/1 "2026-02-27T01:27:55Z")

</div>

Hi! I want to get a volume of a child group inside of a parent group. The parent group is scaled. How to get the volume of the child group taking in to account parent’s transformation? I know that it can be easily done for areas, like this: scaled\_child\_area=child.area(parent\_transformation). But I don’t see any similarly easy method for volumes.

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [February 27, 2026, 6:02am UTC](https://forums.sketchup.com/t/calculating-volume-apply-transformation-of-a-parent-to-a-child/345003/2 "2026-02-27T06:02:20Z")

</div>

Please use the forum search feature on this category before opening new topics.

- [How do you reliably get a group/component instances volume? - Developers / Ruby API - SketchUp Community](https://forums.sketchup.com/t/how-do-you-reliably-get-a-group-component-instances-volume/173349) - Aug 2021

There are probably other topics as well.

---

<div class="post-metadata">

**Author:** ![mrwiacek](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mrwiacek](https://forums.sketchup.com/u/mrwiacek)\
**Post date:** [March 2, 2026, 9:49pm UTC](https://forums.sketchup.com/t/calculating-volume-apply-transformation-of-a-parent-to-a-child/345003/3 "2026-03-02T21:49:03Z")

</div>

Hi! Thanks for you reply. I’m looking in to it since. Cheers

---

<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:** [March 3, 2026, 1:26pm UTC](https://forums.sketchup.com/t/calculating-volume-apply-transformation-of-a-parent-to-a-child/345003/5 "2026-03-03T13:26:02Z")

</div>

Almost but not quite. You must extract the upper left 3x3 matrix from the 4x4 that SketchUp’s Tr ansformation class uses. The rightmost (4th) column contains the offset of the instance’s origin, which has no effect on scaling. Also, the 16th element of the Transformation may contain an additional scale factor instead of 1. That must be checked and accounted for.
