dwg2bmp

The maximum number of bytes for the raw image data is 2'147'483'647 bytes. With four bytes per pixel (ARGB), the maximum size for the output file is 536'870'911 pixels, or for example 23'170x23'170 pixels.

dwg2svg

(also dxf2svg)

dwg2svg converts a DXF or DWG file into an SVG (Scalable Vector Graphics) file. The output file can be optimized to look exactly the same as the drawing file (default) or to transfer as much of the geometry across as possible (switch -g).

Usage: dwg2svg [OPTION]... <drawing file>

Converts a DWG / DXF file to a SVG file.

-a, -adjust Adjust page size to include thickest lineweight -b, -bottom=MB Set page margin at bottom to MB -block=BLOCK_NAME Name of block to output (defaults to *Model_Space) -c, -circle=CR Export points as circles with radius CR -e, -equalmargins=M Set all page margins to M -l, -r, -t and -b are ignored -f, -force Overwrite existing output file -g, -preservegeometry 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 -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 -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 -x, -cross=CS Export points as crosses with size CS

Points: If neither -c nor -x is given, points are not exported.SVG Units: SVG only supports the following 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.

merge

merge is a powerful tool to merge multiple drawing files (DXF,DWG,...) into one. Each drawing can be individually positioned, rotated, scaled and flipped horizontally or vertically. One of the parameters when calling merge is an XML file which defined what drawings are inserted and where, at what angle, etc. The insert tag may be repeated to insert the same drawing multiple times with different parameters.