Packaging model components

 

Introduction

The packaging of a model component is the true production phase in the model component life cycle.

 

Once you have prepared your model component (by creating and defining a model component, identifying the model parts and external files you want to include in it, and creating any dependencies that may exist between it and other model components), the packaging operation transforms it into a unique file, which can subsequently be deployed and used in other projects.

 

Model component packaging includes the following operations:

·         the definition of the directory where the packaged model component will be located

·         the selection of MDACs whose note types and tagged value types are to be included in the packaged model component

·         the review of information on the model component and the launch of the packaging operation

 

 

Defining the path of the packaged model component

To define the path where your packaged model component will be stored, carry out the steps shown below.

 

Running the "Package model component" command

 

Steps:

1.      Right-click on the model component to open the context menu.

2.      Run the "MDACs/Model components/Package model component" command.  The "Package a model component" window then appears.

3.      In this "Path" field in this window, enter the path of the directory where the packaged model component will be stored.

 

Continue by carrying out the steps shown in the illustration below.

 

 

Selecting note types and tagged value types to be included in the model component

You can select MDACs whose note types and tagged value types you wish to include in the packaged model component.  For example, if you choose to associate the C++ Developer MDAC with the model component you are about to package, all the note and tagged value types provided by this MDAC will be available in your model component.

 

To select note and tagged value types, carry out the steps shown below.

 

Defining note types and tagged value types to include in the model component

 

Steps:

1.      In the "Associated MDACs" field of the "Package a model component" window, select the MDACs whose note types and tagged value types you want to have available in your packaged model component.

2.      To preview the note types and tagged value types to be included, click on the  icon on the right of the field. 

3.      The "Preview package content" window then appears, showing a list of included files, note types and tagged value types.

 

Note:      The files appearing in the "Files" field of this window are those defined through the {RAMComponentFiles} tagged value.  For further information on the inclusion of external files, please see "Developing model components".

 

 

Reviewing model component information and launching the packaging operation

The bottom half of the "Package a model component" window presents information on the model component, notably its version number and any dependencies that exist between it and another model component.

 

After defining the path where your packaged model component will be stored, selecting the MDACs that will be associated with it, and verifying that the model component information shown is correct, simply click on the "Package" button to launch the model component packaging operation.