DXF (Drawing Interchange Format: Định Dạng Trao Đổi Họa Bản) của AutoCAD
Tham Chiếu
- Hạng Mục
Nhập-Xuất Khẩu
- Trình Đơn
Nhập
DXF layers are reflected as Blender groups. This importer uses a general purpose DXF library called "dxfgrabber".
Ánh Xạ Kiểu Dữ Liệu của DXF
To be as non-destructive as possible the importer aims to map as many DXF types to Blender curves as possible.
DXF thành Đường Cong
LINE
asPOLYLINE
curve (with the option to merge connecting lines).(LW)POLYLINE
,(LW)POLYGON
asPOLYLINE
curve if they have no bulges else asBEZIER
curve.ARC
s,CIRCLE
s andELLIPSE
s asBEZIER
curves.HELIX
es (3D) asBEZIER
curves.
DXF thành Khung Lưới
MESH
is mapped to a mesh object with a Subdivision Surface modifier, including the edge crease.POLYFACE
s andPOLYMESH
es are imported to a mesh object.3DFACE
s,SOLID
s,POINT
s are imported into one combined mesh object per layer calledlayername_3Dfaces
.
Những Kiểu DXF còn Thiếu Vắng
Hatches
Hướng Đạo Viên/Người hướng dẫn/lãnh đạo
Tính Chất
Tùy Chọn về Hội Nhập
- Các Khối Thành
DXF Blocks can be imported as linked objects or group instances. Linked objects use parenting for DXF sub-blocks (blocks in blocks).
- Khối Phụ Huynh sang Khung Hộp Viền
Draw a bounding box around blocks.
- Vật Thể Hợp Nhất/vật thể hội nhập lại với nhau/làm một/hợp nhất
Since Blender (v2.71) is pretty slow at adding objects the user might want to merge similar DXF geometry to one object.
- By Layer
Produces one object per layer; if there is mesh, curve, lamp, text data on one layer one object per layer and per Blender object.
- By Layer and DXF Type
The second not only differentiates between Blender data types but also DXF types, such as
LWPOLYLINE
andPOLYLINE
.- Theo tầng lớp và các đa giác đóng kín, không phình/phồng ra
Closed polylines with no bulge, that is no curved edges, can be merged to one single mesh. This makes sense when the DXF polylines have an extrusion and/or an elevation attribute, which basically describes a location/rotation/scale transformation. If this merge option is chosen, line thickness settings will be ignored/disabled.
- By Layer and DXF-Type and Blocks
For DXF files with a block being referenced many times, this option allows to insert the same block many times with one instanced-face object instead of with one object for each time the block needs to be inserted. Unfortunately this works only for block inserts that are uniformly scaled. Non-uniformly scaled block inserts are being imported as defined in Blocks As.
- Kết Hợp Thực Thể
LINE
thành Đa Giác Separated lines in DXF might be merged to one consecutive Blender poly curve. Similar to Remove Doubles but for curves.
Độ Dày và Chiều Rộng của Đường Nét
- Đại Diện cho Độ Dày/Chiều Rộng của Đường Nét/Đại Diện Cho Độ Dày của Đường Thẳng/Chiều Rộng
DXF line attributes thickness and width have an effect on line in Z and X/Y direction respectively. A straight line might be turned to a cube by its attributes for instance. Therefore, in Blender these attributes are represented with curve extrusion, bevel and taper objects.
- Hội nhập lại với nhau/làm một/hợp nhất theo Thuộc Tính
If both Merged Objects and Represent Line Thickness/Width are activated the object merging needs to be extended to separate all lines width different thickness and width. With Merge by Attributes this separation option is also available without the actual representation of line thickness and width.
Vật Thể Bổ Sung
- Nhập Khẩu
TEXT
(
TEXT
,MTEXT
)- Nhập Khẩu
LIGHT
Including support for AutoCAD colors.
- Xuất Khẩu các Thực Thể
ACIS
Export NURBS 3D geometry (
BODY
,REGION
,PLANESURFACE
,SURFACE
,3DSOLID
) to ACIS-Sat files, since this is the format AutoCAD stores NURBS to DXF. You are going to be notified about the amount of stored.sat
/.sab
files.
Tùy Chọn về Góc Nhìn
- Hiển Thị các Nhóm trong Mục Lục
Switch the Outliner display mode to
GROUPS
(DXF layers are mapped to groups).- Nhập Khẩu Tập Tin DXF vào một Cảnh Mới
Nội Dung Cần Viết Thêm.
- Đặt Hình Học ở Trung Tâm Cảnh
Center the imported geometry to the center of the scene; the offset information is stored as a custom property to the scene.
Tham Chiếu Địa Lý
Important: DXF files do not store any information about the coordinate system / spherical projection of its coordinates. Best practice is to know the coordinate system for your specific DXF file and enter this information in the DXF importer interface as follows:
- Pyproj
Installation: Download (Windows, macOS) Pyproj and copy it to your
AppData/ApplicationSupport Folder/Blender/3.0/scripts/modules/.
In case you need to compile your own binary refer to this post on Blender Artists.
Pyproj is a Python wrapper to the PROJ library, a well-known C library used to convert coordinates between different coordinate systems. Open source GIS libraries such as PROJ are used directly or indirectly by many authorities and therefore can be considered well-maintained.
If Pyproj is available the DXF importer shows a selection of national coordinate systems but lets the user also to enter a custom EPSG / SRID code. It also stores the SRID as a custom property to the Blender scene. If a scene has already such an SRID property the coordinates are being converted from your DXF file to target coordinate system and therefore you must specify an SRID for the DXF file. If no SRID custom property is available the scene SRID is by default the same as the DXF SRID.
- Không Có Pyproj
In case Pyproj is not available the DXF importer will only use its built-in lat/lon to X/Y converter. For conversion the "transverse Mercator" projection is applied that inputs a lat/lon coordinate to be used as the center of the projection. The lat/lon coordinate is being added to your scene as a custom property. Subsequent imports will convert any lat/lon coordinates to the same georeference.
Important: So far only lat/lon to X/Y conversion is supported. If you have a DXF file with Euclidean coordinates that refer to another lat/lon center the conversion is not (yet) supported.
- Quy luật thông thường để lựa chọn một SRID
if you have your data from OpenStreetMap or some similar GIS service website and exported it with QGIS or ArcGIS the coordinates are most likely in lat/lon then use WGS84 as your SRID with Pyproj or "spherical" if Pyproj is not available. For other DXF vector maps it's very likely that they use local / national coordinate systems.
Open the DXF with a text editor (it has many thousands of lines) and make an educated guess looking at some coordinates. DXF works with "group codes", a name Autodesk invented for "key" as in key/value pairs. X has group code 10, Y has 20, Z has 30. If you find a pattern like:
10, newline, whitespace, whitespace, NUMBER, newline, 20, newline, whitespace, whitespace, NUMBER, newline, 30, newline, whitespace, whitespace, NUMBER
then
NUMBER
will be most likely your coordinates. You can probably tell from the format and/or the range of the coordinates which coordinate system it should be.
Xuất
Dữ Liệu Hỗ Trợ
Mesh face:
POLYFACE
or3DFACE
Mesh edge:
LINE
Modifier (optionally)
Dữ Liệu chưa Hỗ Trợ
Mesh vertex:
POINT
Curve:
LINE
s orPOLYLINE
Curve NURBS:
curved-POLYLINE
Text:
TEXT
or (wip:MTEXT
)Camera:
POINT
orVIEW
orVPORT
or (wip:INSERT(ATTRIB+XDATA)
)Light:
POINT
or (wip:INSERT(ATTRIB+XDATA)
)Empty:
POINT
or (wip:INSERT
)Object matrix: extrusion (
210-group
), rotation, elevation3D Viewport: (wip:
VIEW
,VPORT
)Instancing vert: auto-instanced or (wip:
INSERT
)Instancing frame: auto-instanced or (wip:
INSERT
)Instancing group: auto-instanced or (wip:
INSERT
)Material:
LAYER
,COLOR
andSTYLE
propertiesGroup:
BLOCK
andINSERT
Parenting:
BLOCK
andINSERT
Visibility status:
LAYER_on
Frozen status:
LAYER_frozen
Locked status:
LAYER_locked
Bề Mặt
Siêu Vật Thể
Cốt
Lưới Rào
IPO/Hoạt Họa