UaModeler  1.6.5.472
Projects

Creating/Opening a Project

Before working with UaModeler, you have to create a project. This is described step-by-step in the section HowTo and Short Tutorial.

By default, project files are saved to the user’s home directory and contain the extension tt2pro. To load an existing project file, choose File → Open… from the menu or click on the yellow folder icon.

A graphical representation of the current project is shown in the Project Window. The screenshot below shows the project created in the HowTo (Windows): Create a New Project With a Method. The top node represents the Project itself, beneath it you can find a folder containing the models which have been added to the project and the template set which has been chosen when creating the project.

project_details.png
Project Details

When selecting one of these nodes in the project window, some associated information is displayed in the Attributes Window.

Project Node

When selecting the project node, the Attributes Window shows general project related information.

Name
Name of the project
FileName
Name of the file for saving the project
TemplateSet
The current template set
OutputPath
The output folder for the generated source code files

To edit these settings, choose Project → Project Settings… from the menu.

Change Project Settings

To select another template set, choose Project → Project Settings… from the menu. Select a new template set and continue by clicking Next. Depending on the template set, it might be necessary to fill in additional information on the following pages.

Models Folder

This folder contains all Models which have been added to the project.

For each new project, it is necessary to create a project specific model, which will be stored in a separate file (in our case examplemodel.ua. The standard OPC UA Server model as defined in the OPC UA Specification is added automatically.

The blue gear wheel symbol in front of a model node indicates that this model is selected for generating code for this model namespace.

Right-clicking on the Models folder opens a context menu providing the following options.

project_add_model.png
Adding a Model to a Project
Add Standard Model
Add one of the base models delivered with UaModeler (see Models)
Add Existing Model
Add an existing custom model (e.g. a model which has been created in another project
Add New Model
Add a new custom model; this model will be stored in a separate *.ua file (see below).

Add Model

The Add New Model dialog is devided in two parts. On the top, you have to specify settings that are saved in the model file. When picking a model name, the file name and the namespace URI are filled automatically. Of course, these values can be changed to your liking.

The settings at the bottom of the dialog are template set specific and stored in the project file. Click on the question mark in the title bar of the dialog and then on the tile of the input field to display a description.

Remove Model

To remove a model from a project, choose Remove Model… from the context menu of the model. A model can only be removed if it is not needed by other models. UaModeler will check dependencies and show a dialog window if other models depend on the model to be removed, allowing you display the affected nodes in the Output Window.

See the page Models for more options.

TemplateSet Node

The following information is displayed in the attributes window regardless of the template set which has been chosen

TemplateSet
The name of the template set
Description
A short description of the template set, including the version number.

All other information depends on the template set.

Set Default Starting NodeIds

If the user does not specify a NodeId, newly created nodes receive their NodeId directly from the UaModeler. Thus, the user doesn’t need to worry about picking unique identifiers. By default, each node class has “its own” range of numeric NodeIds, i.e. beginning from a numeric identifier, UaModeler selects the next NodeId that is not used so far. By default, these starting NodeIds are:

NodeClass Starting NodeId
ObjectTypes 1001
VariableTypes 2001
Objects 5001
Variables 6001
Methods 7001
DataTypes 3001
ReferenceTypes 4001
Views 8001

You can modify these starting NodeIds by selecting the menu entry Settings → Select NodeIds for new nodes. To eliminate “gaps” between automatically assigned identifiers, you can use Compress Numeric NodeIds from the context menu of a model.