Creating New NED Files

Once you have an empty OMNeT⁠+⁠+ project, you can create new NED files. Choosing File|New|Network Description File from the menu will bring up a wizard where you can specify the target directory and the file/module name. You may choose to create an empty NED file, a simple/compound module, or a network. Once you press the Finish button, a new NED file will be created with the requested content.

Figure 2.1. Creating a new NED file

Creating a new NED file


Tip

Make sure that the NED file and the contained module have the same name. For example, a compound module named Wireless42 should be defined within its own Wireless42.ned file.

NED Source Folders

It is possible to specify which folders the IDE should scan for NED files and that the IDE will use as the base directory for your NED package hierarchy. The IDE will not use any NED files outside the specified NED Source Folders and those files will be opened in a standard text editor. To specify the directory where the NED files will be stored, right-click on the project in the Project Explorer and choose Properties. Select the OMNeT⁠+⁠+ | NED Source Folders page and click on the folders where you store your NED files. The default value is the project root.

Figure 2.2.  Specifying which folder will hold your NED files

Specifying which folder will hold your NED files