Importing DXF Files

(gmax dev only) File menu > Import > AutoCAD (*.DXF)

DXF files are used to import objects from AutoCAD (and other programs that support this file format).

Keep the following in mind when you are creating your DXF geometry, and when you are deciding whether to convert by layer, color, or entity:

The successful unification of face normals depends on the welding of coincident vertices. Sometimes, depending upon the precision of the model as it was created in AutoCAD, the vertices may not be close enough to be considered "coincident." They will not be welded, and the faces will not be properly unified. In this case, increase the Weld Threshold value in the Import DXF File dialog.

Converting by layer can result in objects consisting of many elements. In certain cases, some of these elements may have all of their face normals flipped the wrong way. You can detect this in gmax by turning off Backface Cull in the Display panel. Use the Normal modifier to correct this.

If you do not want to flip normals, you can either use 2-sided materials, or turn on the Force 2-Sided option in Configure > Viewport Configuration > Viewport Rendering Options.

If you are loading a large scene containing thousands of entities (such as 3D faces) and have chosen to load an object by entity, the conversion can take a long time. It also produces a huge number of objects to handle in gmax. To avoid this, organize your DXF file so that these kinds of entities are grouped by layer, then make the conversion by layer rather than by entity.

Interface

When you import a PRJ file, you first see a DXF Import dialog. This has the same controls as the 3DS Import dialog, except that there is no Convert Units option. When you have set the options and clicked OK in the DXF Import dialog, you then see a Import DXF File dialog.

Derive Objects From: Determines how components in the .dxf file are to be converted into objects.

Layer: Each layer with a unique name is converted into a separate object.

Color: All entities of the same color are converted into a single entity.

Entity: Each entity is converted into a separate object.

Weld Vertices: Welds coincident vertices in the .dxf file into single vertices in the gmax mesh.

Weld Threshold: Determines the size of the area which vertices must occupy to be welded.

Weld: Turns on the Weld Vertices function. In most cases, you should leave this box turned on because unwelded objects can't be correctly unified or smoothed.

Auto-Smooth: Applies smoothing groups to the geometry based on the smoothing angle set by the smooth angle spinner. Edges between faces that have an angle between them that is greater than the specified smoothing angle will appear faceted. Edges between faces that are below the specified angle are smoothed.

Smooth Angle: Determines the size of the smoothing angle.

Auto-Smooth: Turns on the Auto-Smooth function.

Arc Subdivision group

Polygon Degrees: Specifies the number of degrees between each vertex any imported curvature that's converted to a mesh object in gmax. An example is an extruded polyline.

Spline Degrees: Specifies the number of degrees between vertices in an imported curvature that's converted to a Bezier spline (a shape) in gmax. This could be an arc or a non-extruded polyline, for example. Unlike mesh objects, Bezier splines contain their own curvatures, so you don't need as many vertices. The default setting of 90 degrees is usually adequate.

Miscellaneous group

Remove Double Faces: Removes one of the pair wherever two faces are occupying the same location.

Cap Closed Entities: Converts closed 2D polylines into mesh objects. Closed, planar, 3D polylines are capped. If the 2D polyline is open, it will be imported as a spline shape.

Unify Normals: Forces the normals of all faces on each object to face the same way (usually out). If, when you view your gmax scene, the face normals are pointing in the wrong direction, use the Normal modifier to flip them. For best results, leave this box on.