Open Eneroth3 opened 5 years ago
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.
Thanks for the report.
Side note: be vary of p variables, as it will shadow the p method in Kernel.
p
Kernel
SU-44309
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.
Tested in SketchUp 2018 and 2019.