For details see this discussion: https://www.klayout.de/forum/discussion/2272/bug-bookmark-view-does-not-exist-anymore-in-ruby-in-klayout-28-6#latest
Summary: run KLayout with the following script in "-rm":
module MpluginEC
include RBA
class PluginECFactory < PluginFactory
def initialize
register(100000, "plugin_extern", "External\nControl")
end
def create_plugin(manager, root, view)
return Plugin::new
end
end
class PluginEC < Plugin
end
PluginECFactory.new
end
Load a file and in the macro IDE use:
RBA::Application::instance.main_window.current_view
This returns a LayoutViewBase object and not a LayoutView object as required. Without the plugin initialization, the LayoutView is returned.