Create a library

Create a library

A library is created using a library definition. A library definition is a predefined script that collects information from the library workspace by which it can be published as a version of a library as an .RCSL-file. A published .RCSL-file contains a set of standardized elements with properties and relations that are the output of the library definition. Examples include standardized requirements, standardized systems objects, standardized risks, and standardized tests. An .RCSL-file can be included in a project workspace. As a result, users can create elements based on the standardized elements and profit from the lessons learned.

Create a new Library definition*

  1. In the workspace menu, click on  Output.
  2. Click on the menu  Libraries.
  3. In the library definitions overview, click on  Add library definition. As a result, the dialog Add library definition is opened.
  4. In the field Name, give a unique name to the library. This name will also occur in the library drawer in the project workspace.
  5. In the field Entry element, select type element that is central in this library and that needs to be taken over by the project.
  6. In the field Namespace, give a name. Typically, this is the name of the Library workspace initially. However, the existence of the Namespace setting allows for changing the name of the Library workspace without disrupting the series of RCSL files that are published.
    • With Include category, stencils will be grouped per category.
    • In that case, select the property or relation to base the categories on.
  7. Finalize your entry by clicking on Create. 

Write the library definition script*

A library definition script is constructed by using a dedicated syntax. 

To quickly create (parts of) the script syntax, Relatics offers a script generator in the overviews. To use this, apply the following steps:

  1. In the type list, click on a type element to open the corresponding overview.
  2. In the overview, select the  My view, All elements, or a Use case tab.
  3. In the selected view, use the model selector and filters to obtain the desired dataset.
  4. On the selected tab, click on  Open menu.
  5. In the dropdown menu, click on  Copy query for library. As a result, the script is copied to the clipboard.
  6. Navigate to the library definition details by clicking on the row in the library definition overview table.
  7. In the library definition details, click on  Edit beside the Query label.  As a result, the dialog Edit query dialog opens.
  8. In the Edit query dialog, paste the script.

The output structure preview shows all the elements, properties, and relations disclosed in the script.

Note:

  • Only the entry element can be used as a root iterator.
  • A library definition script can have multiple root iterators.

Duplicate a library definition*

  1. In the library definitions overview, navigate to the menu and choose duplicate.
  2. Your duplicated library definition can now be found below the original library definition in the library definitions overview.

Delete a library definition*

  1. In the library definitions overview, navigate to the menu and choose delete.
  2. Your deleted library definition is now deleted and removed from the library definitions overview.
* In the workspace, the user type of your user must be set to power user to enable this feature.