Import DWG

Instructions for use

AutoCAD Drawing (*.dwg) is a graphic file of AutoCAD, and it is a standard file format specifically used for saving vector graphics. The Import DWG tool can import DWG files as simple datasets or CAD datasets.

Parameter description

parameter name Parameter Description Parameter Type
Select File Enter the data path information to be imported. String
Result Datasource Specifies the data source where the result dataset is stored. Datasource
Result Dataset Specifies the name of the result dataset. String
Encode Type Specifies the encoding type of the dataset to be generated. EncodeType
Import Mode Sets the import mode when a dataset with the same name exists. ImportMode
Dataset Type Selects the type of dataset after import. Supports import as CAD dataset or simple dataset, default is simple dataset. Boolean
Import Null Dataset Check this checkbox. If the imported dataset is empty, it will import an empty dataset with no objects by default. Otherwise, the program will prompt that import failed. Boolean
Create Spatial Index Sets whether to create a spatial index for the imported dataset, checked by default. If checked, a spatial index will be created for the dataset according to the supported index types, which can improve spatial query and access efficiency. Boolean
Curve fitting precision Used to set the edge precision of line or polygon objects when importing data, default is 73. Integer
Unite Layers Used to set whether to merge layers after import, unchecked by default. If checked, all CAD layers of the same type will be merged into one dataset for import; if unchecked, each CAD layer will be imported as a separate dataset. Boolean
Import Symbol Block Used to set whether to import symbol blocks as point objects. If checked, import as symbol blocks. If unchecked, import as point objects. Boolean
Import Extended Field Used to set whether to import data similar to attribute tables in AutoCAD drafting. These external extended data are imported as additional fields. Unchecked by default, meaning no external extended data is imported; if this checkbox is checked, when importing CAD format data, external extended data will be appended after the default fields. Boolean
Import Invisible Layers Used to set whether to import invisible layers in AutoCAD drawing files, not imported by default. Boolean
Import Block Attribute Check this checkbox to import block attributes during import; uncheck to ignore block attributes. Boolean
Import Extended Records Used to set whether to import user-defined fields and attribute fields as extended records, not imported by default. Boolean
Keep Object Height Used to set whether to retain the height information (Z-coordinate value) of 3D objects when importing CAD containing 3D objects (e.g., 3D polylines); not retained by default. If checked, after successful import, an Elevation field will be generated in the attribute table of the resulting dataset to store the height information of the objects. Boolean
Keep Parametric Object Used to set whether the resulting dataset after import retains composite surface or composite line objects with parametric objects when importing CAD containing parametric objects; not retained by default. Boolean
Retain Polyline Width Used to set whether to retain the width of polylines in AutoCAD drawing files during import. In CAD, a polyline is composed of a series of straight lines and arcs, each segment can define its own width. Default is to retain the originally defined polyline width. Boolean
Scaling factor Used to set the scaling factor values in the X, Y, Z directions. Boolean

Output Result

parameter name Parameter Description Parameter Type
Result Dataset Result dataset. DatasetVector