Skip to content

Chapter 11 - Libraries

Global and local libraries Default library

There are three types of libraries in CadnaA:

  • The local libraries are part of a project file and are saved in the CadnaA file. Therefore, objects from this type of library are not available in other project files. Local libraries are user-definable.
  • The global libraries are available for all project files, and are not saved in the CadnaA file. It is recommended to enter data with a wider range of application in the global library. Global libraries are user-definable.
  • The default libraries are embedded in the source code of CadnaA and therefore not user-definable. They are updated and maintained by DataKustik. You can use the Library Manager (see Library Manager) to make the data of the default library visible (e.g. by updating your global library with the data from the default library).

Both user-definable local and global libraries are accessible via the Tables menu. When updating CadnaA to a newer version, only the default library is updated. Global library entries can be updated manually via the library manager.

Inserting, Editing, Deleting Data Records

In these libraries, data records can be inserted, edited, or deleted via the table‘s context menu. Alternatively, double-click onto a table row. In object dialogs the local and global libraries can be accessed. Changes entered will become effective only when the object dialog is closed by OK.

Referencing Spectra via Object Dialogs

Spectra from the local or global libraries are referenced by specifying their ID on the respective object dialog (see Common Input Data, Type). Referencing to spectra which have no ID is not possible. When referencing a spectrum from the global library the respective spectrum is copied to the local library and, thus, becomes part of the project file.

Incorrect spectrum IDs that do not comply with the rules ( Rules for ID in the Introduction to CadnaA manual) or whose character string in the input field does not match any spectrum from the database are highlighted in red. When using Object Attribute per Variant (see Object Attributes per Variant) and a possible coloring in green or yellow, the red marking of incorrect IDs or incorrect referencing is omitted.

Import of Data Records

User-defined spectra can be inserted into both types of libraries via the keyboard or by import. The import may occur via the library manager (see Library Manager) provided that the data is CadnaA file format. Spectra with external file format can be imported to the local library via the database interface (see Database Import (ODBC & XLSX)).

Local Libraries

The local library may contain data for:

Global Libraries

The global library contains data for:

  • spectra (as above)
  • SET-S
  • diurnal patterns
  • railway classes
  • parking lot movements (see Parking Lots)
  • text blocks
  • color palettes
  • legends

Note

In the above-mentioned libraries - except those for „sound levels“, „sound reduction indexes“ and „absorption coefficients“ - the records are not automatically copied from the global to the local library. In part, access is possible only to objects in the local library. In these cases, copy a data record using the button „--> local Lib.“ of the respective table in the local library or use the Library Manager (see Library Manager).

User-defined Entry for global Library in CADNA.DAT

The user-defined data (e.g. spectra) in the global libraries are saved in the file CADNA.DAT to the hard drive. On Windows systems the following path is used:

"C:\Users\USERNAME\AppData\Local\Datakustik\CadnaA"

This file will not be overwritten by an update. Please copy/save this file regularly to prevent data loss.

Global Library on a Server

In order to set a user-defined file path for the file CADNA.DAT enter the following in the CADNAA.INI in the paragraph [MAIN]:

"LibFile=DRV:\Path\Cadna.dat"

For DRV enter your drive and path of the folder where the CADNA.DAT is saved. This offers the possibility to store data from the global library on a server where all users have access to.