[quote="thomthom"]To delete one entity: use Entity.erase!
entity = Sketchup.active_model.active_entities[0] entity.erase!
hi tig,
in my first ruby i have already managed it to copy one master-component (created with ruby at [0,0,0] and copying it, where ever i want.
after placing it in all places wanted, i would like
to DELETE this particular master-component.
i found your code:
entity = Sketchup.active_model.active_entities[0]
entity.erase!
but how can i define , which component is to be deleted? is there a name somewhere? or index, i could "memorize" while creating the master component? is the [0] maybe a place for a definition?
thanx a lot for helping!
stan






