Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entities.add_group related crash #752

Open
thomthom opened this issue Jan 17, 2022 · 1 comment
Open

entities.add_group related crash #752

thomthom opened this issue Jan 17, 2022 · 1 comment

Comments

@thomthom
Copy link
Member

thomthom commented Jan 17, 2022

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.

@sketchupbot
Copy link

Logged as: SKEXT-3316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants