Modeling Entities


For concepts on Entities see: Entity Concept

Add an Entity from the explorer


1. To create an entity, right-click on the component, select New and Entity Model.

Add Entity Model


2. This will result in the following wizard. Type a name for the Entity and click finish.

Figure:  Create Movie Entity

Add attribute to an Entity from source editor

Values to an Entity can be added through the editor with the support of code completion.

Add values to entity with code completion support

Code completion syntax for entity can be referred at:

Figure:  Entity Editor


This is the completed Movie.entity for Movie component.

Add Attribute to an Entity from diagram

Attributes to an Entity can be added through the overview diagram.
Right-click on the Entity node on the diagram


The new attribute will be named Unknown1 after adding the new attribute. Right-click on the attribute and enable properties.

Enter values for the new attribute

Code Generation


After values are entered save the file. At that point related .entity, .api, .apy and .cre files will be created.
This same result can be achieved by generating code for the entity.

Right-click on the entity file and invoke Generate Code



Resulting .api and .apy files could be found under the Database node.


This page is generated from IFS Developer Studio - for latest update, see help pages in the tool itself.