Skip to content

Folders

When managing large project files or in case of long-term projects it can be useful to save different objects - like e.g. buildings, roads or industrial sources - each in a different file while linking them for calculation. This has the advantage that only the „mother-files“ have to be updated in case of alterations and not all copies of this file in addition. In order to achieve this, CadnaA offers a feature called „Folder“.

CadnaA folders

A CadnaA folder is an ASCII file listing the file names of all files to be joint to a project file. When opening such a folder file, all files listed are loaded automatically. The folder file may have any name.

Example

In the example below, the project file is called PROJECT.CNA. Any text editor can be used to edit the ASCII file (TXT format). Such a file may contain this:

Cadna/A Mappe 1.0
;now the filenames follow
Ground.cna
Road.cna
Bulding.cna
e:\tmp\mappe5\mappe2000\Areas.cna
{lang="plain text"}

Text in Project.cna Explanation
Cadna/A Mappe 1.0 This text must appear on the first line.
;now the files follow This is a comment line.
Ground.cna The first file, containing just the contour lines.
Road.cna A file containing only roads.
Building.cna A file containing only buildings.
e:\tmp\folder5\folder2000\Areas.cna A file with this file path. The path must be specified in order to include a file not lying in the same directory as the folder file.

Note

Each file to be imported must appear in a separate line. You may also insert other folders into a folder file.

We recommend to write-protect this file.

When opening the Project.cna file in CadnaA using the File|Open command, CadnaA opens the first file listed – Ground.cna per example – and imports further files into it. By default, the name of the resulting combined file will be the name of the folder file. Alternatively, enter a new file name using command Save As.

Relevant Configuration of Calculation

Since the first file listed in the folder file is opened while all others are imported into it, the configuration of calculation of this first file is relevant for the calculation.