Interface Guide

NetLogo 6.0.4 User Manual

This section of the manual explains the function of each element in NetLogo’s user interface.

In NetLogo, you have the choice of viewing models found in the Models Library, adding to existing models, or creating your own models. The NetLogo interface was designed to meet all these needs.

The interface can be divided into two main parts: NetLogo menus, and the main NetLogo window. The main window is divided into tabs.

Menus

On a Mac, if you are running the NetLogo application, the menu bar is located at the top of the screen. On other platforms, the menu bar is found at the top of the NetLogo window. Screenshot

The functions available from the menus in the menubar are listed in the following chart.

Chart: NetLogo menus

File

New Starts a new model.
Open… Opens any NetLogo model on your computer.
Models Library A collection of demonstration models.
Recent Files Re-opens any previously model opened with "File -> Open"
Save Save the current model, or the currently selected source file.
Save As… Save the current model, or the currently selected source file, using a different name.
Save All Save the current model and all open source files. This option is only available when one or more source files are open.
Upload to Modeling Commons Uploads the model to Modeling Commons. See Modeling Commons
Save As NetLogo Web… Saves a web page, in HTML format, containing NetLogo web running your model.
Export World… Saves all variables, the current state of all turtles and patches, the drawing , the plots, the output area and the random state information to a file.
Export Plot… Saves the data in a plot to a file.
Export All Plots… Saves the data in all the plots to a file.
Export View… Save a picture of the current view (2D or 3D) to a file (in PNG format).
Export Interface… Save a picture of the current Interface tab. ( in PNG format )
Export Output… Save the contents of the output area or the output section of the command center to a file.
Export Code… Save the model's code to an HTML file, preserving colors.
Import World… Load a file that was saved by Export World.
Import Patch Colors… Load an image into the patches; see the import-pcolors command.
Import Patch Colors RGB… Load an image into the patches using RGB colors; see the import-pcolors-rgb command.
Import Drawing… Load an image into the drawing, see the import-drawing command.
Import HubNet Client Interface… Load the interface from another model into the HubNet Client Editor.
Print… Sends the contents of the currently showing tab to your printer.
Quit Exits NetLogo. On a Mac, this item is on the NetLogo menu instead.
Edit
Undo Undo last text editing action you performed.
Redo Redo last undo action you performed.
Cut Cuts out or removes the selected text and temporarily saves it to the clipboard.
Copy Copies the selected text.
Paste Places the clipboard text where cursor is currently located.
Delete Deletes selected text.
Select All Select all the text in the active window.
Find… Finds a word or sequence of characters within the Info or Code tabs.
Find Next Find the next occurrence of the word or sequence you last used Find with.
Comment /
Uncomment
Used in the Code tab to add or remove semicolons from code (semicolons are used in NetLogo code to indicate comments).
Shift Left / Shift Right Used in the Code tab to change the indentation level of code.
Format Used in the Code tab to correct the indentation of the currently selected code.
Snap to Grid Available only in the Interface Tab. When enabled new widgets stay on a 5 pixel grid so it is easier to line them up. (Note: this feature is disabled when zoomed in or out.)
Convert from 5.3.1 to 6.0 Available only in an ".nls" code tab. Treats the code in this tab as though it were written in 5.3.1 and converts it to run in NetLogo 6. Note that this will not take into account code defined in the main code tab. "Undo" doesn't take this operation into account, so you won't want to save unless you're satisfied with the changes.
Tools
Preferences… Opens the preferences dialog, where you can customize various NetLogo settings. On a Mac, this item is on the NetLogo menu instead.
Halt Stops all running code, including buttons and the command center. (Warning: since the code is interrupted in the middle of whatever it was doing, you may get unexpected results if you try to continue running the model without first pressing "setup" to start the model run over.)
Globals Monitor Displays the values of all global variables.
Turtle Monitor Displays the values of all of the variables in a particular turtle. You can can also edit the values of the turtle's variables and issue commands to the turtle. (You can also open a turtle monitor via the View; see the View section below.)
Patch Monitor Displays the values of all of the variables in a particular patch. You can can also edit the values of the patch's variables and issue commands to the patch. (You can also open a patch monitor via the View; see the View section below.)
Link Monitor Displays the values of all of the variables in a particular link. You can can also edit the values of the link's variables and issue commands to the link. (You can also open a link monitor via the View; see the View section below.)
Close All Agent Monitors Closes all open agent monitor windows.
Close Monitors for Dead Agents Closes all open agent monitor windows targeting dead agents.
Hide/Show Command Center Makes the command center visible or invisible. (Note that the command center can also be shown or hidden, or resized, with the mouse.) This option is only available when the Interface Tab is active
3D View Opens the 3D view. See the Views section of the Interface Tab Guide for more information.
Color Swatches Opens the Color Swatches. See the Color Section of the Programming Guide for details.
Turtle Shapes Editor Draw turtle shapes. See the Shapes Editor Guide for more information.
Link Shapes Editor Draw link shapes. See the Shapes Editor Guide for more information.
BehaviorSpace Runs the model over and over with different settings. See the BehaviorSpace Guide for more information.
System Dynamics Modeler Opens the System Dynamics Modeler. See the System Dynamics Modeler Guide for more details.
Preview Commands Editor Allows for easy editing of the commands sequence used to create preview images for models. Gives a way to specify what code will be used (or specify that the image is manually made) and preview the resulting image.
HubNet Client Editor Opens the HubNet Client Editor. See the HubNet Authoring Guide for more details.
HubNet Control Center Disabled if no HubNet activity is open. See the HubNet Guide for more information.
Zoom
Larger Increase the overall screen size of the model. Useful on large monitors or when using a projector in front of a group.
Normal Size Reset the screen size of the model to the normal size.
Smaller Decrease the overall screen size of the model.
Tabs This menu offers keyboard shortcuts for each of the tabs. On a Mac, it's Command 1 through Command 3. On Windows, it's Control 1 through Control 3. Additional numbers are used for tabs containing ".nls" files.
Help
Look Up In Dictionary Opens a browser with the dictionary entry for the selected command or reporter. (You may also use the F1 key for this.)
NetLogo User Manual Opens this manual in a web browser.
NetLogo Dictionary Opens the NetLogo Dictionary in a web browser.
NetLogo Users Group Opens the NetLogo Users Group site in a web browser.
Introduction to Agent-Based Modeling Opens the MIT Press page for "Introduction to Agent-Based Modeling" (by Uri Wilensky and William Rand) in a web browser.
Donate Opens the NetLogo donation page in a web browser.
About NetLogo 6.0.4… Information on the current NetLogo version you are running. On a Mac, this menu item is on the NetLogo menu instead.

Tabs

At the top of NetLogo’s main window are three tabs labeled “Interface”, “Info” and “Code”. Only one tab at a time can be visible, but you can switch between them by clicking on the tabs at the top of the window. Screenshot

Right below the row of tabs is a toolbar containing a row of controls. The controls available vary from tab to tab.

International Usage

Character sets

NetLogo always saves and loads models in the UTF-8 character encoding, which includes a wide range of international characters.

If you are in a locale other than U.S. English, let us know if you have any trouble using your local character set.

The Transition Guide has advice on converting models containing international characters from earlier NetLogo versions.

Languages

Most of NetLogo’s GUI, and some of its error messages, are now “internationalized”. This means that it is now possible to display NetLogo in different languages.

We say “possible” here because the current release of NetLogo only supports English, Spanish, Chinese, Russian, and Japanese.

The work on internationalization is not complete. We are asking for help from the user community in helping us localize items such as the menus and error messages.

Default language

By default, NetLogo uses the same language your operating system is set to, if available. (If unavailable, you get English.)

You can record a preference for a different language by changing the “User Interface Language” option in the preferences dialog. Once a new language is chosen you will have to restart NetLogo.

Support for translators

We hope NetLogo will become available in many different languages. If you would like to translate NetLogo to your language, see this wiki page for instructions.