Feature Description
AutoCAD Drawing Exchange Format (*.dxf) is a file format developed by Autodesk for exchanging data between AutoCAD and other software. It is an ASCII or binary file format for graphics files, used to output graphics to other applications and input graphics from other applications. The Import DXF tool can import DXF files as simple datasets or CAD datasets.
Parameter Description
| Parameter Name | Parameter Interpretation | Parameter Type |
|---|---|---|
| Select File | Enter the data path to import. | String |
| Result Datasource | Specify the datasource to store the result dataset. | Datasource |
| Result Dataset | Specify the resulting dataset name. | String |
| Group | Support importing data into a specified group. If no group is selected, data is imported to 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 dataset after import. Supports import as CAD Dataset and simple dataset, default is simple dataset. | Boolean |
| Import Null Dataset | Check this checkbox; if the import 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 is 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 area objects when importing data, default is 73. | Integer |
| Unite Layers | Used to set whether to merge layers after import. Not checked by default. If checked, all CAD layers of the same type are merged into one dataset for import; if not checked, 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 not checked, it is imported as a point object. | 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. Not checked by default, i.e., no external extended data is 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; if not checked, block attributes are ignored 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 preserve 3D object height information (Z coordinate of objects) when importing CAD containing 3D objects (such as 3D polylines). Not preserved by default. If checked, after successful import, an Elevation field is generated in the attribute table of the resulting dataset to store the object height information. | Boolean |
| Keep Parametric Object | Used to set whether the resulting dataset preserves composite area or composite line objects with parametric objects from the CAD dataset when importing CAD containing parametric objects. Not preserved by default. | Boolean |
| Keep Polyline Width | Used to set whether to preserve the width of polylines in AutoCAD drawing files during import. In CAD, a polyline is a polyline composed of a series of straight lines and arcs, and each segment can have its own width. The original defined polyline width is preserved by default. | Boolean |
| Closed Line to Face | Used to set whether to convert closed graphics to area objects when importing *.dwg and *.dxf files. Supported types include: Polyline (Polyline), 2D Polyline (2D Polyline), 3D Polyline (3D Polyline), Solid (Solid), Spline (Spline), Circle (Circle), Ellipse (Ellipse), Proxy Entity (ProxyEntity), Block Reference (BlockReference), 3D Face (Face). This parameter is only available when the import dataset type is simple dataset. Checked (default): Perform a closure check on imported objects. For objects that meet the closure condition, generate corresponding area objects while importing according to the original primitive type and store them in the region dataset. Unchecked: Import according to the original primitive type of the object. |
Boolean |
| Convert Object to Point |
Used to set whether to convert specific CAD entities to point objects when importing *.dwg and *.dxf files. Including: Hatch (Hatch), Proxy Entity (ProxyEntity), and Block Reference (BlockReference).This parameter is only available when the import dataset type is simple dataset. Note: When converting a Block Reference (BlockReference) to a point object, the position of the generated point uses the insertion point coordinates of the block reference, rather than the geometric center of the block graphic. Therefore, when the insertion point of the block is inconsistent 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 also imported. |
Output Result
| Parameter Name | Parameter Interpretation | Parameter Type |
|---|---|---|
| Result Dataset | Result dataset | DatasetVector |