Editors

An editor is also a visual component within the Workbench. It is typically used to edit or browse a resource. The visual presentation might be text or a diagram. Typically, editors are launched by clicking on a resource in a view. Modifications made in an editor follow an open-save-close lifecycle model.

The editors provided by CityEngine are:

 

Depending on the type of file that is being edited, the appropriate editor is displayed in the editor area. For example, if a ".cga" file is being edited, a CGA shape grammar editor is displayed in the editor area. The figure below shows the CGA rule editor open, with the file "RR20_appartments_01.cga". The name of the file appears in the tab of the editor. An asterisk (*) appearing at the left side of the tab indicates that the editor has unsaved changes. If an attempt is made to close the editor or exit CityEngine with unsaved changes, a prompt to save the editor's changes will appear.

When an editor is active, the main menu bar and toolbar of CityEngine contain operations applicable to the editor. When a view becomes active, the editor operations are disabled. However, certain operations may be appropriate in the context of a view and will remain enabled.

Some features are common to both views and editors. Both can be active or inactive, but only one window can be active at any one time. The active window is the one whose title bar is highlighted. The active window is the target for common operations like selection. The active window also determines the contents of the status line. If an editor tab is not highlighted it indicates the editor is not active; however views may show information based on the last active editor.

The editors can be stacked in the editor area and individual editors can be activated by clicking the tab for the editor. Editors can also be tiled side-by-side in the editor area so their content can be viewed simultaneously. See Dragging Windows how to rearrange views and editors.

CTRL+F6 pops up a list of currently open editors. By default, the list will have selected the editor used before the current one, allowing you to easily go back to the previous editor.

If a resource does not have an associated editor, CityEngine will attempt to launch an external editor registered with the platform. These external editors are not tightly integrated with CityEngine and are not embedded in the main window of CityEngine.

On Windows, if the associated editor is an external editor, CityEngine may attempt to launch the editor in-place as an OLE document editor. For example, editing a ".doc" file will cause Microsoft Word to be opened in-place within CityEngine if Microsoft Word is installed on the machine. If Microsoft Word has not been installed, Word Pad will open instead.

 

Note: To quickly open a file in the associated editor, hit CTRL+SHIFT+R and type the name of the file you are looking for.

 

Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.