The CGA Editor
By double clicking on a ".cga" file in the Navigator window, the corresponding file is opened in the CGA shape grammar editor. Another possibility to open a ".cga" file for editing is to click on Rule File in the Inspector window if the selected object already has a rule file assigned already. The typical workflow with the CGA shape grammar editor is:
- Assign a rule to the selected objects either via the RMB-menu on the rule file in the Navigator, or via RMB-menu in the Viewport, or via in the main menu. In the latter two cases the rule has to be selected in the opened dialog.
- Open the rule file in the CGA shape grammar editor and edit the rules.
- Press CTRL+S for saving the rule file.
- Press CTRL+G for (re-)generating the model.
The CGA rule editor has syntax highlighting and shows syntax errors (the latter are described in more detail in the Problems window where you can double click on each entry). Furthermore, during typing, command completion can be invoked via CTRL+SPACE.
NOTE: you can always recall a list of currently active CityEngine shortcuts by pressing CTRL+SHIFT+L.
Copyright ©2008-2018 Esri R&D Center Zurich. All rights reserved.