UI::Toolbar#add_separator is invalid in Sketchup 2023 when executing scripts on the console

UI::Toolbar#add_separator is invalid in Sketchup 2023 when executing scripts on the console.
But it’s valid when executing scripts in plugins_dir.

toolbar = UI::Toolbar.new('TEST')
toolbar.add_item(UI::Command.new('test1') {})
toolbar.add_separator
toolbar.add_item(UI::Command.new('test1') {})

image

Post deleted by autor

I can confirm this behavior. Not a big deal, in my opinion, however you can report it here if you think… SketchUp/api-issue-tracker

2 Likes

Sorry I undestood wrong… Deleted