api-issue-tracker icon indicating copy to clipboard operation
api-issue-tracker copied to clipboard

entities.add_group related crash

Open thomthom opened this issue 4 years ago • 1 comments

Related forum thread: https://forums.sketchup.com/t/creating-a-component-from-a-face-crashes-sketchup/186346/10?u=tt_su

Sketchup Face.zip

Open Sketchup Face.skp, select the fence instance and run the script:

mod = Sketchup.active_model
ents = mod.active_entities
sel = mod.selection	
sel.grep(Sketchup::ComponentInstance) do |s| 
  s.definition.entities.grep(Sketchup::Face) do |f| 
    ents.add_group(f)
  end
end

Close the model and a crash occur.

thomthom avatar Jan 17 '22 14:01 thomthom

Logged as: SKEXT-3316

sketchupbot avatar Jan 24 '22 07:01 sketchupbot