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

export-interface primitive not working in child models #83

Open
bainco opened this issue Aug 15, 2016 · 1 comment
Open

export-interface primitive not working in child models #83

bainco opened this issue Aug 15, 2016 · 1 comment

Comments

@bainco
Copy link
Member

bainco commented Aug 15, 2016

In an LS child model, opened via ls:load-gui-model, the export-interface primitive produces an empty file (with the correct name).

To recreate:

  1. Open an LS GUI child model
  2. In the command center, enter export-interface "test.png"

The resulting file is created, but empty.

export-view works just fine. Also, perhaps this would be a useful menu item for opened LS models? In regular old NetLogo, you can do File > Export... > Export Interface... but that Menu item is not present when an LS model is the active window.

macosx_screenshot

I'd upload the empty file... but GitHub won't let me.

@bainco
Copy link
Member Author

bainco commented Aug 15, 2016

Coincidentally, when you ls:show <model-id> a child model that was opened via ls:open-headless-model, and then use the command center to try and export the interface with export-interface, it just refuses to do anything at all. No empty file. No error. Nothing. Again, export-view works as expected.
macosx_screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant