10.2 Create a new model from scratch

Before you can create a new C-model, you have to create a new C project as described in Setting up the Workspace for C Projects. Remember:

The workspace should look like this:

PIC

The next step is to add the model folder: Right click on the new project. Select New->Folder and name it model.

PIC

Add the model file to the folder. Right click on the new folder. Select New->file and name it HelloWorldC.room.

PIC

Due to the file ending .room, the tool will ask you to add the Xtext nature. Answer with Yes.

PIC

The workspace should look like this:

PIC