It looks like I'm treading ground that's been settled for years.
I thought your link to the entities class was going to solve my problem, but...
I'm trying to construct component definitions out of several previously defined components, but without placing any physical objects.
Here's one of those definitions:
` # Make the bottom plate
bottom_plate_def = Sketchup.active_model.definitions.add "Bottom Plate"
bottom_plate = bottom_plate_def.entities.add_face pt # pt is an array of points
Move the origin to center of final 3D cell
tr = Geom::Transformation.translation [-oal/2, -oaw/2, -cell_thickness/2 + plate_thickness]
bottom_plate_def.entities.transform_entities tr, bottom_plate`
Now, how do I combine three such definitions (bottom_plate, core, top_plate) into a fourth one? The entities class doesn't seem to allow it. But it must be possible, since it's a straightforward operation in Sketchup itself.
three_d_cell_std_def = Sketchup.active_model.definitions.add "3D Cell - Standard"
three_d_cell_std_def = Sketchup.active_model.definitions.add "3D Cell - Standard"