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

Can assign same name to multiple scenes #261

Open
Eneroth3 opened this issue May 11, 2019 · 2 comments
Open

Can assign same name to multiple scenes #261

Eneroth3 opened this issue May 11, 2019 · 2 comments

Comments

@Eneroth3
Copy link

The SketchUp Ruby API allows to set the same name on multiple scenes. This should to my knowledge not be allowed, and if you try to name a scene the same as another scene in the GUI, the name doesn't change.

6.times { Sketchup.active_model.pages.add }
Sketchup.active_model.pages.each { |p| p.name = "Same" }
6.times { Sketchup.active_model.pages.add("Same") }

Tested in SketchUp 2018 and 2019.

@thomthom
Copy link
Member

Thanks for the report.

Side note: be vary of p variables, as it will shadow the p method in Kernel.

@taustin73
Copy link

SU-44309

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

3 participants