I have a piece of code that crashes SU 8 (on a Mac).
Basically the idea is to create an instance of a component, find the positions of its vertices and then erase the instance. The instance is created correctly; the vertices are correctly printed, but then SU dies. Here's the code fragment, where ents is model entities.
brace_template = ents.add_instance(brace.definition,brace_transformation)
bte = brace_template.explode
vertices = bte.select{|e| e.typename == "Vertex"}
puts "Brace coordinates"
vertices.each{|v| puts v.position}
ents.erase_entities(bte)
Any ideas why this is happening?

