Loading vector map from DGN format

Print Top page

The program carries out the loading of a vector map from DGN exchange format of Microstation system.

The program represents library dgntomap.dll, the calling to which is executed under the control of Map 2011 system, by means of menu: Tools / Run Applications.

Before execution of task the user should resolve, what he is going to do:

1. To create a new vector map in a format of Map 2011 from the data in DGN format;

2. To add the information into an existing vector map in a format of Map 2011 from the data in  DGN format.

If the information in DGN format does not correspond to the definite division accepted for vector maps in Map 2011 system or the user does not know this conformity, he should choose "by default" creation mode of output map for the given program. As a result of the program execution the user map with the following parameters will be created:

- scale 1 : 2000;

- all other parameters are not set.

Further the user can transform the information to the necessary to him type of a map by means of  Map 2011 system - Tools / Run Applications / Data transforming / Vector map transformation or Tools / Run Applications / Data processing / Cutting of sheets.

If the information in DGN format corresponds to the definite division accepted for vector maps or the user knows parameters of loaded vector map, then he can execute the given program in "CREATE" creation mode for output map or he can create the passport of a required vector map by means of Map 2011 system (File / New) and after that execute the given program, having specified the created vector map as an output map. In this case the user should enter parameters of loaded map.

If the user wants to add the information from files of DGN format to the existing vector map he  should execute the given program, having specified the existing vector map as an output map.

The operations order of user at loading the information from DGN format.

1. After appearance of the basic dialog the user should choose DGN files which will be processed by given program.

2. To choose a name of resources classifier file - name of RSC file.

3. To choose a name of a vector map which will be created or into which the information from chosen DGN files will be added.

4. To choose scale of a created vector map.

5. To enter a region name of the created vector map.

6. To choose a creation mode of output map:

- By default, if the user wants to create the user map with the definite map parameters;

- Create, if the user wants to create a new map with such name;

- Add, if the user wants to add the information into an existing vector map or into map, preliminary created with the definite parameters in the sheet passport.

7. If the user knows by what principle the DGN file has been created, he can choose a principle of  objects creation. In the given version following principles are supported:

-         from the attributive data (in the attributive data of DGN file the names of objects are   contained);

-         from a level (number of a level in DGN corresponds to the certain view of objects).

Having chosen one of principles of DGN construction the user can adjust manually conformity between DGN data and objects codes from file of the classifier and press ADJUST button.

After that the dialogue will appear, in which at the left there will be either names of objects from attributes or numbers of levels, and on the right there will be fields for filling from RSC.

10. If the user wants to load some DGN files of the same type (equally created) with identical adjustment of classification code and the attributive data, having adjusted parameters of loading once, the user can save them into adjustment file, having pressed " SAVE " button, and at repeated processing of DGN files of the given type can choose a corresponding file of adjustment, having pressed " LOAD " button.

The user can create adjustment file independently by usual text editor. The adjustment file has  txt expansion. The structure of adjustment file looks like:

.DGN - the beginning of  adjustment  file, it is an obligatory field.

<name1> <name2>, where name1 is a name or a level from DGN, name2 - an object key from the classifier. If name2 is not filled, the given view of object will be filled by system codes.

    . END - the end of adjustment file, the obligatory field.

11. To press Run button for start of information loading process from DGN file.

During loading of the data the information about quantity of the loaded objects and quantity of mistakes at loading the information is represented to the user.

During loading the information the user can stop process, having pressed Cancel button.

After ending of the loading the vector map will open, into which loading of the data from DGN format has taken place.