when placing component with dynamic attribute .component placed successfully and dynamic attribute value updated in Attribute inspector with resizing not working.
I want to recalculate attribute value which is currently loaded by
componentdefinition = defs.load(path)
But with the using below code
sel = Sketchup.active_model.selection
dco = $dc_observers.get_latest_class
sel.grep(Sketchup::ComponentInstance).each do |inst|
dco.set_attribute(dict,'_lenx_nominal','50')
dco.set_attribute(dict,'_leny_nominal','50')
dco.set_attribute(dict,'_lenz_nominal','50')
dco.redraw_with_undo(inst)
end
I’m able to recalculate selected component on sketchup window.