You are applying the ‘transform_entities’ to the model.active_entities [aka ‘ents’]
BUT the entities you pass are NOT in that entities collection… but in… wallcomponent_layer1_def.entities
So the transformation will not work !
if you used: wallcomponent_layer1_def.entities.transform_entities(transform, entities_to_transform)
the two newly added edges would transform 1000 inches east along the red-axis - however, perhaps not as you had hoped ??
FYI: In SketchUp component definitions do not have a layer property, so associating a definition with a layer is pointless. Any instance of any definition, can be associated or re-associated, with any layer at any time, either manually or via code.
YVWall # Main Component
| > YVWall_layer_1 # Component, and member of YVWall. Eg bricks
| > YVWall_layer_2 # Component, and member of YVWall. Eg insulation
| > YVWall_layer_3 # Component, and member of YVWall. Eg concrete
In each YVWall_layer_x there will be set an attribute to a face
The confusion arises from your use of the word ‘layer’ in the naming convention…
In SketchUp it’s assigned to an entity and is used to control visibility.
If you substituted another word for ‘layer’, then the confusion would be avoided, e.g.