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?
$dc_observers.get_latest_class.redraw_with_undo(componentinstance)
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
``
$dc_observers.get_latest_class.redraw_with_undo(selection)
is
sele
meant to be
selection
1 Like