Import DWG
Instructions for Use
An AutoCAD Drawing (*.dwg) is a graphic file specific to AutoCAD, serving as a standard file format for saving vector graphics. The Import DWG tool allows you to import DWG files as simple datasets or CAD datasets.
Parameter Description
| Parameter Name | Parameter Interpretation | Parameter Type |
|---|---|---|
| select file | Enter the path information for the data to be imported. | String |
| result datasource | Specify the datasource where the resulting dataset will be stored. | Datasource |
| result dataset | Specify the resulting dataset name. | String |
| Group | Supports importing data into a specified group. If no group is selected, data is imported directly under the datasource. | String |
| encode type | Specify the encoding type of the dataset to be generated. | EncodeType |
| import schema | Set the import mode when a dataset with the same name already exists. | ImportMode |
| dataset type | Select the type of the dataset after import. Supports import as a CAD Dataset or a simple dataset. Default is simple dataset. | Boolean |
| import null dataset | Check this box to import an empty dataset with no objects by default when the imported dataset is empty. Otherwise, the program will prompt that the import failed. | Boolean |
| create spatial index | Set 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 type, improving spatial query and data access efficiency. | Boolean |
| curve fitting precision | Used to set the precision for line objects or the edges of polygon objects during data import. 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 are merged and imported as a single dataset. If unchecked, each CAD layer is imported as a separate dataset. | Boolean |
| import symbol block | Used to set whether to import a symbol block as a point object. If checked, it is imported as a symbol block. If unchecked, it is imported as a point object. | Boolean |
| import extended field | Used to set whether to import data similar to attribute tables in AutoCAD drawings. This external extended data is formatted as additional fields after import. Default is unchecked, meaning external extended data is not imported. If checked, when importing CAD format data, the external extended data is appended after the default fields. | Boolean |
| import invisible layers | Used to set whether to import invisible layers in the AutoCAD drawing file. Default is not to import. | Boolean |
| import block attribute | Check this box to import the block attributes of the data. If unchecked, block attributes are ignored during import. | Boolean |
| import extented records | Used to set whether to import user-definable fields and property fields as extended records. Default is not to import. | Boolean |
| keep object height | Used to set whether to retain the 3D object height information (the Z-coordinate value of objects) when importing CAD containing 3D objects (such as 3D polylines); default is not to retain. If checked, after successful import, an Elevation field will be generated in the attribute table of the resulting dataset to store the object height information. | Boolean |
| keep parametric object | Used to set, when importing CAD containing parametric objects, whether the resulting dataset maintains the composite polygon or composite line objects with parametric properties from the CAD Dataset; default is not to maintain. | Boolean |
| Retain Polyline Width | Used to set whether to retain the width of polylines (Polylines) in the AutoCAD drawing file during import. In CAD, a polyline is a sequence of line and arc segments, each of which can have its own line width defined. Default is to retain the originally defined polyline width. | Boolean |
| closed line to face | Used to set whether to generate a corresponding region dataset for closed lines after import. Selected (default): After importing closed lines, the original line dataset is retained while a corresponding region dataset is generated. Not Selected: After importing closed lines, only the line dataset is retained. |
Boolean |
| fills the object turn point | Used to set whether to convert fill objects to a point dataset after import. Selected: Fill objects will be imported as a point dataset. Not Selected (default): Fill objects will be imported as a region dataset. |
Boolean |
| scaling factor | Used to set the scaling factor values for the X, Y, and Z directions of the data. | Boolean |
Output Result
| Parameter Name | Parameter Interpretation | Parameter Type |
|---|---|---|
| result dataset | Result dataset | DatasetVector |