ezdxf-draw - Man Page

ezdxf draw – draw and convert DXF files by the Matplotlib backend

Synopsis

ezdxf draw [-h] [--backend {matplotlib,qt,mupdf,custom_svg}] [--formats] [-l LAYOUT] [--background {DEFAULT,WHITE,BLACK,PAPERSPACE,MODELSPACE,OFF,CUSTOM}] [--all-layers-visible] [--all-entities-visible] [-o OUT] [--dpi DPI] [-f] [-v] [FILE]

Options

Positional Arguments

FILE

DXF file to view or convert

Optional Arguments

-h--help

show a help message and exit

--backends {matplotlib,qt,mupdf,custom_svg}

choose the backend to use for rendering

--formats

show all supported export formats and exit

-l LAYOUT, --layout LAYOUT

select the layout to draw, default is “Model

--background {DEFAULT,WHITE,BLACK,PAPERSPACE,MODELSPACE,OFF,CUSTOM}

choose the background color to use

--all-layers-visible

draw all layers including the ones marked as invisible

--all-layers-visible

draw all entities including the ones marked as invisible (some entities are individually marked as invisible even if the layer is visible)

-o OUT--out OUT

output filename for export

--dpi DPI

target render resolution, default is 300

-f--force

overwrite the destination if it already exists

-v--verbose

give more output

Environment

See ezdxf(1).

Files

See ezdxf(1).

Examples

Convert the DXF file “gear.dxf” into a SVG file by the Matplotlib backend:

$ ezdxf draw -o gear.svg gear.dxf

Show all output formats supported by the Matplotlib backend on your system. This output may vary:

$ ezdxf draw --formats

eps: Encapsulated Postscript
jpg: Joint Photographic Experts Group
jpeg: Joint Photographic Experts Group
pdf: Portable Document Format
pgf: PGF code for LaTeX
png: Portable Network Graphics
ps: Postscript
raw: Raw RGBA bitmap
rgba: Raw RGBA bitmap
svg: Scalable Vector Graphics
svgz: Scalable Vector Graphics
tif: Tagged Image File Format
tiff: Tagged Image File Format

See Also

ezdxf(1)

ezdxf-audit(1), ezdxf-view(1), ezdxf-browse(1), ezdxf-browse-acis(1), ezdxf-strip(1), ezdxf-config(1), ezdxf-info(1), ezdxf-hpgl(1)

Referenced By

ezdxf(1), ezdxf-audit(1), ezdxf-browse(1), ezdxf-browse-acis(1), ezdxf-config(1), ezdxf-hpgl(1), ezdxf-info(1), ezdxf-strip(1), ezdxf-view(1).

March 2024