Manage projects

In CityEngine, all the files associated with a given scene or group of scenes are organized in a project. A project is a collection of folders for the following file types:

  • assets—This is the default location for 3D models and textures that are used by CGA.
  • data—Use this folder to store mass models (as grouped .obj or .dxf files), for example. Dashboard configuration files for each scene and elevation delta files for each layer are also stored in this folder. If you have other project-related resources such as artwork and sketches, place them into the data folder as well.
  • images—Additional imagery such as Viewport snapshots are stored here.
  • maps—This folder contains the image maps used by the map layers. For example, a height map or obstacle map is stored here. Downloaded data from Get Map Data is stored in this folder.
  • models—This folder is the default location for exported 3D models.
  • rules—This folder contains CGA shape grammar rule files (.cga). Double-click a .cga file to open the file in the CGA Editor.
  • scenesCityEngine scene files (.cej) are stored here. Double-click a scene file to close the current scene (if any) and open the newly selected scene.
  • scripts—This folder contains Python scripts (.py).
Caution:

It is not recommended that you delete or rename the default folders mentioned above. You can add folders on the root level or put your additional material in the data folder.

 Create a project

You can create projects, scenes, folders, and files using the following options in CityEngine:

  • Click File > New.
  • Right-click the Navigator and select New.
  • Press Ctrl+N.

After the wizard appears, do the following:

  1. Click CityEngine project inside the CityEngine folder.
  2. Click Next.
  3. Enter the project name.
  4. Click Use default location or click Browse to select a different location.
  5. Click Finish.

    The Navigator displays the new project.

Import an existing project into a workspace

For unzipped or zipped projects, do the following:

  1. Click File > Import/Link Project Folder into Workspace or Import Zipped Project Workspace.
  2. Select root folder of project to import.
  3. Click Finish.

Import options

You can choose from the following options for importing:

  • Select root directory—Select the root directory in the file system to start scanning for projects to import. Type the full path or browse to select the path in the file system.
  • Select archive file—Select an archive (.zip) file to scan for projects to import. Type the full path or browse to select the archive in the file system.
  • Copy projects into workspace—When selected, this will cause the imported project to be copied into the current workspace. If this option is not selected, the project content will be linked into the workspace. This option is not available for zipped projects.
    Note:

    It is recommended that you always turn on the Copy projects into workspace option. Exceptions are when you have limited storage space or for collaborative work environments.

  • Add project to working sets—Add an imported project to the user-defined working sets.

Create a scene

To create a scene in CityEngine, do one of the following:

  • Click File > New in the main menu.
  • Right-click the Navigator and select New.
  • Press Ctrl+N.

After the wizard appears, do the following:

  1. Click CityEngine scene inside the CityEngine folder.
  2. Click Next.
  3. Select the project folder.
  4. Enter a file name.
  5. Use the default coordinate system or choose one by clicking Choose.
  6. Click Finish.

    The scene is added to the project in Navigator.

    Scene added in Navigator.
    The scene is added to the project in Navigator.
Tip:

Alternatively, right-click the project folder in Navigator and select New > CityEngine scene.