i am trying to make a dynamic component in Sketchup, i need to set value to lenZ, lenX, lenY.. but when i set it, it doesn't change. The attribute inspector shows the change, but the component doesn't change. i tried using redraw, refresh view..but it's still doesn't works.. (i need to do by this way, i need to set the component from a ruby plugin, and after it, i must ajust it by their attributes). (excuse my english..)
This is the code that i am using:
sk = Sketchup
model = sk.active_model
view = model.active_view
sel = model.selection
obj = sel.first
dcs = $dc_observers.get_latest_class
obj.set_attribute('dynamic_attributes','lenz',20)
dcs.redraw(obj)
This is a image of the component, but their size is the same.