KufCad

Importing data

Command: IMPORT, DXFIN, IMAGEATTACH (IMAGE, IM), OPEN

ToUse
View / edit a DXF or DWG fileOPEN — opens in a new tab
Bring a DWG / DXF file into the drawing you are working onIMPORT (or IMPORTDWG) — becomes one block at the origin
Open a DXF file (like OPEN, in a new tab)DXFIN
Place a raster image (PNG, JPG, BMP, GIF, TIFF, WebP)IMAGEATTACH
Map dataIMPORTGIS — see the GIS chapter

IMPORT: bring in a drawing as a block

  1. Type IMPORT, Enter, then choose the file (or type the path when FILEDIA = 0).
  2. The file's content becomes a block named after the file, inserted at 0,0,0; the view zooms to fit.

Use EXPLODE if you want to break the block into separate objects.

The command line reports, for example Imported /tmp/kuf_docs/plan.dwg as block "plan".

DXFIN

DXFIN opens the DXF file in a new tab, like OPEN; the drawing you are working on is not changed. The command line reports Opening … then Opened: N entities.

Raster images

IMAGEATTACH: choose an image file; the image is placed at the center of the view, about 40% of the screen width wide, and is selected; use grips (four corners resize, the center moves) or MOVE / SCALE to adjust. The command line records the file name and pixel size.

When FILEDIA = 0 (or from a script), IMAGEATTACH asks Enter file name: so you can type the image path instead of using the file dialog.

Images, xrefs and blocks in detail: chapter 9.