How to update scaled Dynamic Component via code?

hi , i have a nested DC when i scaled by ruby code it just change bounding box ,
is there any way to update parameters?

Have you made a redraw?


componentinstance is the variable in question

1 Like

tanks @pcmoor , i don’t know what is it i’m beginner in ruby , add your code to this please

selection = Sketchup.active_model.selection[0]
tr = Geom::Transformation.scaling(2)
sele.transformation = tr



meant to be

1 Like

tank you @pcmoor you make my day