Feature Description
AutoCAD Drawing (*.dwg) is a graphics file of AutoCAD, a standard file format specifically for saving vector graphics. The Import DWG tool can import a DWG file as a simple dataset or a CAD dataset.
Parameter Description
| Parameter Name | Parameter Interpretation | Parameter Type |
|---|---|---|
| Select File | Enter the data path to import. | String |
| Result Datasource | Specify the datasource where the result dataset is stored. | Datasource |
| Result Dataset | The specified resulting dataset name. | String |
| Group | Supports importing data into a specified group; if no group is selected, the data is imported 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 exists. | ImportMode |
| Dataset Type | Select the type of the dataset after import. Supports import as CAD dataset and simple dataset, with simple dataset as the default. | Boolean |
| Import Null Dataset | Check this checkbox; if the imported dataset is empty, an empty dataset with no objects is imported by default. Otherwise, the program will prompt 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 index type supported by the dataset, which can improve spatial query and access efficiency. | Boolean |
| Curve Fitting Precision | Used to set the edge precision of line or region objects when importing data; the 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 into one dataset for import; 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. These external extended data are imported as additional fields. Unchecked by default, 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 AutoCAD drawing files; not imported by default. | Boolean |
| Import Block Attribute | Check this checkbox to import block attributes of the data during import; uncheck to ignore block attributes during import. | Boolean |
| Import Extended Records | Used to set whether to import user-definable fields and property fields as extended records; not imported by default. | Boolean |
| Keep Object Height | Used to set whether to retain 3D object height information (Z coordinate value of the object) when importing CAD containing 3D objects (such as 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 object height information. | Boolean |
| Keep Parametric Object | Used to set whether the resulting dataset retains composite region or composite line objects with parametric objects in the CAD dataset after importing CAD that contains parametric objects; not retained by default. | Boolean |
| Keep Polyline Width | Used to set whether to retain the width of polylines in AutoCAD drawing files during import. In CAD, a polyline is a series of straight lines and arcs, each segment can define its own width. The originally defined polyline width is retained by default. | Boolean |
| Closed Line to Face | Used to set whether to convert closed geometries into region objects for import when importing *.dwg and *.dxf files. Supported types include: Polyline, 2D Polyline, 3D Polyline, Solid, Spline, Circle, Ellipse, Proxy Entity, Block Reference, 3D Face. This parameter is only available when the imported dataset type is simple dataset. Checked (default): Perform closure check on imported objects. For objects that meet the closure condition, while importing according to the original geometry type, the corresponding region objects are generated and stored in the region dataset. Unchecked: Import according to the original geometry type of the objects. |
Boolean |
| Object to Point |
Used to set whether to convert specific CAD entities into point objects for import when importing *.dwg and *.dxf files. These include: Hatch, Proxy Entity, and Block Reference.This parameter is only available when the imported dataset type is simple dataset. Note: When converting a Block Reference to a point object, the generated point uses the insertion point coordinates of the block reference, not the geometric center of the block graphic. Therefore, if the insertion point of the block is not consistent with the center of the graphic, the converted point may deviate from the visual center of the block graphic. |
Boolean |
| Import Invisible Object |
Used to set whether to import invisible objects. Checked: Invisible objects are imported together. |
|
| Scaling Factor | Used to set the scaling factor values in the X, Y, and Z directions of the data. | Boolean |
Output Result
| Parameter Name | Parameter Interpretation | Parameter Type |
|---|---|---|
| Result Dataset | Result dataset | DatasetVector |