dwg2svg
Kirjeldus
Section titled “Kirjeldus”Käsureatööriist, mis ekspordib DWG/DXF-joonise SVG-faili.
Kasutamine
Section titled “Kasutamine”Usage: ./dwg2svg [OPTIONS]... <drawing file>
Converts a drawing file (DWG, DXF, ...) file to an SVG file.
-a, -adjust Adjust page size to include thickest line weight -b, -bottom=MB Set page margin at bottom to MB -block=BLOCK_NAME Name of block (or layout) to output (defaults to *Model_Space) -c, -circle=CR Export points as circles with radius CR -color-correction Enable color correction to prevent white on white or black on black painting -d, -recompute-dim Recompute dimension blocks if empty (dimensions rendered with best compatibility) -decimals=D Decimal places for float values (defaults to 4) -e, -equal-margins=M Set all page margins to M -l, -r, -t and -b are ignored -embed-images Embed images (bitmaps) -f, -force Overwrite existing output file -flat Flatten to 2D (Z==0) -fs, -font-substitution FONT1 FONT2 Substitute FONT1 with FONT2 -g, -preserve-geometry Preserve as much of the original geometry as possible Default is identical rendering -h, -help Display this help -i, -inkscape Generate additional information for Inkscape -l, -left=ML Set page margin at left to ML -layer=LAYER_NAMES Comma-separated list of layer(s) to export List may include regular expressions -layer-attribute Export layer attributes into QCAD SVG namespace -ltscale=FACTOR Set linetype scale to FACTOR -n, -no-comments Suppress comments for DXF entities -o, -outfile=FILE Set output file to FILE Default is same path and base name as input file -p, -open Open the converted file after conversion -u, -unit=[in|m|mm] Assume input data to be in given unit Default is the drawing unit Mainly useful for drawings with unit 'None' -r, -right=MR Set page margin at right to MR -s, -scale=SF Set scale factor to SF -t, -top=MT Set page margin at top to MT -w, -min-lineweight=LW Set minimum line weight to LW drawing units Defaults to 0.001 since 0 in SVG means invisible -no-text-transforms Don't use transformations for text entities -x, -cross=CS Export points as crosses with size CS
macOS specific options:
-no-dock-icon Don't show icon in dock. This should only be used in combination with -no-gui.
Qt/X11 platform arguments:
-platform offscreen Run without requiring an X11 server or display. Use this argument to run this command line tool in a Linux server environment.
Qt/X11 environment variables:
QT_QPA_FONTDIR Set to fonts directory in a server environment, e.g. 'fonts/qt'.
Points: If neither -c nor -x is given, points are not exported.SVG Units: SVG only supports the following CAD units: mm, cm, in. - Unsupported Metric drawing units are converted to Millimeters. - Unsupported Imperial drawing units are converted to Inches. Use -s to scale and avoid large values.Margins: Margin values have to be specified in the (converted) SVG unit.
Examples:Adjust page, set all margins to 1.5, export points as circles with radius 0.5:./dwg2svg -a -e 1.5 -c 0.5 file.dwg
Set scale factor to '1:200':./dwg2svg -s 1:200 file.dwg