**Hello everyone 
edit:
To add a dynamic attribute to all instances in SketchUp, proceed as follows:
def add_attribute
mod = Sketchup.active_model
mod.definitions.each do |d|
d.instances.each do |i|
d.set_attribute 'dynamic_attributes', 'lola','10'
i.set_attribute 'dynamic_attributes', 'lola','10'
end
end
end
add_attribute
To remove this attribute without affecting all the dictionary, you have to do like this:
def delete_attribute
mod = Sketchup.active_model
mod.definitions.each do |d|
d.instances.each do |i|
d.delete_attribute 'dynamic_attributes', 'lola'
i.delete_attribute 'dynamic_attributes', 'lola'
end
end
end
delete_attribute
If I change the value of the attributes manually on SketchUp, the deletion will no longer be possible!
How to get around the problem?
Thank you**



**