Tutorials PartCraft help Walkthroughs
Open a DXF drawing as a sketch
Bring a DXF drawing into the open part as a sketch on the plane you choose, with the unit from the file or your own, and closed loops ready to extrude; what is read, what is approximated and what is left out.
Written for PartCraft 0.12. The same help is inside the app: press F1.
A DXF drawing opens in PartCraft as a sketch: the lines, arcs, circles, polylines and splines become sketch geometry on a plane of your choice, and the curves that close into loops are ready for Extrude, Cut or Revolve. The drawing is read by the same DXF reader CadCraft uses, so a file that opens there opens here.
Open the file
- Open or start a part. In the File group open the Import menu and choose Open DXF. Or choose Open and pick a
.dxffile, or drop one on the 3D view. - Choose the Sketch plane: Front, Top or Right. If you picked a flat face, or selected a reference plane, that is offered too.
- Check the Drawing unit. The first choice is the unit the file names, for example inches. A file that names none is read as millimeters, and the dialog says so. Pick another unit if that is wrong; the Size line shows the result in millimeters.
- If the drawing has several layers, tick the ones to bring in. Layers that are off or frozen in the file start unticked.
- Join ends closer than says how far apart two ends may be and still become one point, in millimeters. The default is 0.01. A loop closes only where its ends join.
- Read the summary. It lists what comes in, what is left out, and whether the curves close into loops. Tick Put curves that do not close into construction geometry to keep stray lines (leaders, center lines) out of the way of the loops.
- Choose Add as a sketch. One Sketch feature is added to the part, one undo step. Select it and choose Extrude.
Opening a DXF never replaces the part: it only adds a sketch. In an assembly or a drawing sheet, go back to a part first.
What is read
| In the DXF | In the sketch |
|---|---|
| Line, arc, circle | The same |
| Polyline (2D, with or without bulges) | Lines and arcs; a closed polyline closes |
| Ellipse | A circle if it is round; otherwise a spline through points on it, within the deviation the summary states |
| Spline | A cubic spline with a clamped knot vector is the same curve exactly (a control spline with those knots). Any other (a rational one, another degree, a closed one) becomes a spline through points on it, within the deviation the summary states. A spline given only by fit points is a spline through them |
| Point | A sketch point |
| Block copies | The copy's lines, arcs, circles and polylines, moved, turned and scaled. A copy scaled differently in x and y keeps only its lines, polylines and splines |
| Layer CONSTRUCTION | Construction geometry (the layer PartCraft's own DXF export writes) |
Not read, and counted in the summary by kind: text, dimensions, hatches, images, 3D solids and anything else that is not sketch geometry. Heights (z) and thicknesses are ignored. An entity in a plane that is not parallel to the sketch is left out. Binary DXF files open the same way as text ones, from R12 on.
The sketch comes in with no relations or dimensions, so it is under defined. Add the ones you need: Fully define a sketch with relations and dimensions.
Export it back
Export has DXF of the sketch or flat face (version R12) and DXF 2000. DXF 2000 writes true splines and polylines, and a layout and layers the way newer programs expect. See Export for printing, STEP and DXF.