Import CAD data

 

Function Description

Supports importing AutoCAD in 2 formats, DWG and DXF. DXF, the abbreviation of Drawing Interchange Format (Drawing Interchange Format), is a file format developed by Autodesk for data exchange between AutoCAD and other software formats. This is the ASCII or binary file format of a drawing file used to export drawings to and import drawings from other Applications. DWG is a drawing file of AutoCAD, which is a standard file format for saving vector graphics.

The supported versions of CAD data are as follows:

  • SuperMap iDesktop/iDesktop X 10.1.2 and earlier, supporting data from versions prior to AutoCAD 2015;
  • SuperMap iDesktop/iDesktop X 10.2 and later, supporting data from AutoCAD 2021 and earlier.

Function entrance

  • Start tab-> Data Processing group-> Data Import.
  • In Workspace Manager-> Datasource Context Menu-> Import Dataset...
  • Tools in Toolbox-> Data Import-> AutoCAD: Import DXF, Import DWG, Import DGN.

Operating instructions

  1. On the Home tab, in the Data Processing group, click the Data Import button.
  2. On the Data Import dialog, click the Add File button to pop up the Open dialog, where you can navigate to the path of the data to be imported and open it.
  3. Target Datasource, Result Dataset, Encode Type, Import Mode, and Parameter Description of Source File Info: in Result Data. See the Data Import Public Parameter description page.
  4. Result Data
    • Dataset Type: Select the imported Dataset Type, CAD or Simple Dataset.
      1. CAD: Select this option to set the data Import File as CAD Dataset.
      2. Simple Dataset: Select this option to Import as Simple Dataset the data file, namely, point, line, surface, text, attribute, composite line, and Compound Region Dataset.
    • Create Spatial Index: Check this item to improve the Spatial Query and access efficiency of data for DatasetCreate Spatial Index according to the index type supported by Dataset.
    • Import Null Dataset: Select this check box. If the Import Dataset is an empty Dataset, an empty Dataset without objects will be imported by default. Otherwise, the program will prompt the Import failed.
  5. Transformation Parameters
    Caution:
    • When the function entry is opened from the tab functional area, the system will determine whether Parameter Settings is selectable according to the imported data format. For example, when importing.dxf data, Set Scale Factor is in gray status and cannot be set.
    • When the function entry is opened from the toolbox, some Parameter Settings are not displayed in the tool dialog box according to the opening of the Import Data tool.
    • Curve fitting precision: Used to set the edge precision of a line object or a face object at the time of Import Data. The system defaults to 73. Works only when importing AutoCAD DXF (*.dxf) files and ArtoCAD Drawing (*.dwg) files, and is ignored in other data formats.
    • Font Library Settings: If the imported source file has related font files (*.shx), you need to add them here and import them together to avoid missing fonts and incomplete display in CAD data.
    • Unite Layers: Select this check box to merge All Layers into one layer import when importing DWG/DXF files. When importing, the default is to merge multiple CAD layers into one layer.
    • Import Symbol Block: a check box for setting whether to import block objects or import them as point objects when importing DWG/DXF files. Default Import Symbol Block.
    • Import Extended Field: When importing drawing data in CAD format, data such as an attribute sheet in AutoCAD drawing is also imported. Externally extend the Data Import format to include additional fields. This only works when importing AutoCAD DXF File (*.dxf) and ArtoCAD Drawing files (*.dwg). By default, the system does not select this check box, that is, the external extended data will not be imported. If this check box is selected, the external extended data will be appended after the default field when importing the data in CAD format.
    • Import Invisible Layers: Select this check box to import layers that are not visible in AutoCAD drawing files when importing DWG/DXF files. In AutoCAD, layer invisibility is more practical. When there are multiple layers, different layers save different types of objects. When it is not necessary to display this type of object, the layer is directly set to be invisible, and it is set to be visible in the next use.
    • Import Block Attribute: If this check box is checked, the block attribute of Import Data will be imported. If this check box is not checked, the block attribute will be ignored.
    • Import Extented Records: Select this check box to import User Custom fields and Property Fields as extended records; Uncheck this box to indicate that User Custom's fields and Property Fields will not be imported.
    • Keep Object Height: when importing CAD containing 3D objects (such as 3D polylines), select this item to keep the 3D Returns the height of the object information (Z coordinate value of the object) during import; If this item is not checked, the height information will not be retained after import. After a successful DWG/DXF import, an Elevation field is generated in the property sheet of the resulting Dataset to store the Returns the height of the object information.
    • Keep Parametric Object: If the imported CAD contains parametric objects, select this item, and the CAD Dataset generated after import contains composite surface or composite line objects with parametric objects; if this item is not selected, the imported CAD Dataset does not contain parametric objects.
    • Keep Line Width: Select this check box to keep the width of polylines in AutoCAD drawing files when importing DWG/DXF files. In CAD, a polyline is a polyline consisting of a series of lines and arcs, each of which can define its own line width. By default, the originally defined polyline width is retained.
    • Set Scale Factor: when the imported data is *.dwg data, it is supported to set the Scale Factor values in X, Y and Z directions of the data.
  6. Style Settings: Support the addition of a style cross-reference table to set the CAD style after import.

    Style comparison file: The file extension of the style comparison table is *.stt, including 7 parts: the header of the style comparison table, the version of the comparison table, the line type comparison, the font comparison, the filling comparison, the symbol comparison, and the dxffile file, as shown in the following example:

    SuperMap Style Mapping Table
    Version 6.0

    LineStyleBegin
    (id:Continuous),(id:963867;c:0xff0000;w:1)
    LineStyleEnd

    SymbolBegin
    (ID: GROUND), (ID: 1110; G: GROUND; C: 0x0000ff; a: 0; s:1)
    SymbolEnd

    FillStyleBegin
    (id:ANGLE),(id:015;a:60;fc:0xff0000;bc:0x000000)
    FillStyleEnd

    FontBegin
    (id:arial),(id:System;a:0;fc:0x00ff00;bc:0x000000;xs:1;ys:1)
    FontEnd

    dxffile
    Expstyle.dxf

    Where: SuperMap Style Mapping Table is the header of the style cross-reference table; Version 6.0 is the version of the current cross-reference table; LineStyle Begin is the beginning of the linetype cross-reference; LineStyleEnd is the end of line type contrast; SymbolBegin is the beginning of symbol contrast; SymbolEnd is the end of symbol contrast; FillStyleBegin is the beginning of fill contrast; FillStyleEnd is the end of fill contrast; FontBegin is the beginning of the font comparison; FontEnd is the end of the font comparison; dxffile is the label of the DXF file that identifies the saved style and is used for export.

    The DXF file indicated by

    the dxffile tag is a User Custom file that can save block, line style, and Text Style definitions.

    Symbols, linetypes, and all styles are defined by the block and linetype saved by DXF; Fill Style is only filled against the entity and the fill pattern scale is always 1; the text height, color, and SuperMap are consistent, and the rest are consistent with the DXF definition style.

    When

    exporting, the style contrast is set, but it is not defined in the DXF file, and the default Style Settings are still followed.

    • Linetype comparison: The linetype comparison part starts with the keyword LineStyleBegin and ends with the keyword LineStyleEnd. Each line between them defines a linetype correspondence. A linetype correspondence consists of two fields separated by a Separator ",". The domain is composed as follows:
      Domain 1 Domain 2
      External Data Linetype Name SuperMap data linetype names; colors; Width in mm
    • Symbol comparison: The symbol comparison part starts with the keyword SymbolBegin and ends with the keyword SymbolEnd, and each line between them defines a symbol correspondence. A symbolic correspondence consists of two domains separated by a Separator ",". The domain is composed as follows: The cell name of the Scale
      Domain 1 Domain 2
      referenced block reference or dgn Super Map Symbol Name; Symbol Group Name; Color; Symbol Skew Angle; Symbol
    • Fill contrast: The fill contrast part starts with the keyword FillStyleBegin and ends with the keyword FillStyleEnd, and each line between them defines a fill correspondence. The fill correspondence consists of two domains separated by a Separator ",". The domain is composed as follows:
      Domain 1 Domain 2
      External Fill Mode Name SuperMap fill name; fill Rotation angle; fill foreground color; fill background color
    • Font comparison: The font comparison part starts with the keyword FontBegin and ends with the keyword FontEnd. Each line between them defines a font correspondence. The font correspondence consists of two fields separated by a Separator ",". The domain is composed as follows:
      Domain 1 Domain 2
      External Font

      SuperMapFont; Font Rotation angle; Font foreground color; Font background color; Font X scaling ratio; Font y scaling ratio

    • dxffile file: The dxffile file is identified by the keyword dxffile. It is used for exporting DXF and DWG formats. This tag is invalid during import and can be omitted.
  7. After setting, click the Import button to import the CAD file.
Caution:
  • Currently, Desktop 3D GIS Rendering Engine V2 does not support importing CAD Datasets.
  • If the imported data contains parametric objects, select the Keep Parametric Object check box when importing. According to the selected Dataset Type, there are two situations as follows:
    • CAD: if the Dataset Type is selected as CAD during import, the CAD Dataset generated after import contains the composite surface or composite line object with the parametric object.
    • Simple Dataset: If the Dataset Type is selected as Simple Dataset during import, a composite surface or Compound Line Dataset will be generated separately after import for storing parametric objects.

Related topics

Import Data

Import Shape data

Import Excel data

Data Formats Supported by Type Conversion