Find the size and coordinates of the group

You will need to get the transformations of the groups.
And if the objects are aligned to the model axis, then you can also get information from the groups’ bounding boxes.

You are going to need to do some work to learn Ruby, and the SketchUp API. Start by searching this category for old posts and examples.

ents = Sketchup.active_model.active_entities
group_a = ents.grep(Sketchup::Group).find { |grp| grp.name == "Group A" }
if group_a
  origin_a = group_a.transformation.origin
  x1, y1, z1 = origin_a.to_a
end
2 Likes