TIG
Why constantly to use the method of group_miner, when in him practically is not there a necessity?
Why to apply properties to entity, when are new properties of entity equal to the applied properties?
These questions are linked at a speed of implementation of script on the large scenes.
Example of considerable increase of speed of implementation of script:
class Sketchup;;Group
def definition
self.entities.parent
end
end
def SelectionTool;;group_miner(ents)
ents.each do |e|
if e.is_a? Sketchup;;Group
e.make_unique if e.definition.instances.length > 1
SelectionTool;;group_miner(e.entities)
end
end
end
At the use of method of typename speed of implementation of script goes down in once or twice!
It would be desirable to correct these shortages...