Automatically create configuration with "Default.xml"

With the function Generate CAD export configuration... you can create the configuration file automatically. With it is created for each layer a separate task in the configuration.

Generate CAD export Configuration

Generate CAD export Configuration

 

icon_comment

The requirement for the automatic creation of the configuration file is that the MXD must be saved with the project data and that the delivered Defaults.xml is in the folder CAD export under Program Directory/SynerGIS/GeoOffice/Configuration.

 

The automatic configuration can be created only for one data frame at a time, that is for the active data frame. Therefore the layers are all copied temporarily into one data frame in the WebOffice Sample Project. This has the advantage that the tasks do not have to be acquired manually into the configuration file. Subsequently only adjustments have to be made.

Temporary insertion of all layers into one data frame

Temporary insertion of all layers into one data frame

 

Before performing the automatic generation, the layers are reviewed regarding their data source and symbology.:

 

1. National Capital Cities

Feature class

cities

Geometry Type

Point

Definition Query

"STATUS" = 'National capital' OR "STATUS" = 'National capital and provincial capital enclave' OR "STATUS" = 'National and provincial capital'

Symbology

clip0002

To get the identical representation also in CAD, in the Header File for each Population Rank a block must be set. This block has additionally the attribute City Name, since the name is also to be displayed.

 

2. Other Cities

Feature class

cities

Geometry Type

Point

Definition Query

"STATUS" = 'Provincial capital' OR "STATUS" = 'Provincial capital enclave' OR "STATUS" = 'Other'

Symbology

clip0003

To get the identical representation also in CAD, in the Header File for each Population Rank a block must be set. This block has additionally the attribute City Name, since the name is also to be displayed.

 

3. Country Boundaries

Feature class

country_lines

Geometry Type

Line

Symbology

clip0004

The representation of the line can be defined in the cad export configuration.

 

4. Countries

Feature class

countries

Geometry Type

polygon

Symbology

clip0005

The representation of the area can be defined in the cad export configuration.

 

5. Ocean Background

Feature class

world

Geometry Type

polygon

Symbology

clip0006

The representation of the area can be defined in the cad export configuration.

 

6. Airports

Feature class

gaz

Geometry Type

Point

Definition Query

"CATEGORY" = 'Airport'

Symbology

clip0007

To get the identical representation also in CAD, in the Header File for each Category must be set a block.

 

7. Country Names

Feature class

countries

Geometry Type

polygon

Symbology/Labeling

The Country Name cannot be rendered into CAD as labels. This applies only if the feature class in the background has the geometry type Polygon. To be able to apply these labels into CAD, they have to be available in form of point annotation feature classes. Alternatively the coordinate of the inserted point can be added to the polygon feature class with an X and Y field. If the insert coordinates are available, the label can also be placed.

 

Since in the SampleProject none of the two possibilities are given, the labels are not applied into CAD as into the CAD export configuration.

Generate CAD export configuration

The CAD export configuration is now created by selecting the function Generate CAD export configuration. By default, the configuration is saved into the directory mxd.

icon_comment

Please note that in this step is created a xxx.CadExport.Config.Settings file and not an XML file. This file is the basis for the cad export from the WebOffice export author.

 

In the Configuration file six tasks have been created - one task per layer.

Configuration File

Configuration File

 

For a better overview there are numerous programs that organize the contents of the XML File. In the example we are working with the XML Notepad. After opening the file with the program, the general structure is seen. The configuration file is subdivided into a general section and a tasks section.