Skip to content

LayoutView not promoted to correct class after Plugin initialization #1360

@klayoutmatthias

Description

@klayoutmatthias

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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions