Hoppa till innehåll

dwg2dwg

Kommandoradsverktyg som konverterar en DWG-/DXF-ritning till en annan DWG-/DXF-version eller -format.

Usage: ./dwg2dwg [OPTIONS]... <drawing file>
Converts a drawing file (DWG, DXF) or PDF file
to a drawing file (DWG, DXF) with a specified format release.
-f, -force Overwrite existing output file
-h, -help Display this help
-l, -list List supported releases
-n, -setdimfont=FONT Set the dimension font to the given font
-o, -outfile=FILE Set output file to FILE
Default is same path and base name as input file
-r, -release=RELEASE Set output DXF/DWG release to RELEASE
-s, -set=VARIABLE:VALUE Set the given known variable to the given value
For example -s DIMASZ:2.5
DXF header variables that can be changed are
(among others):
DIMADEC: Angular dimension label precision (0-8)
DIMASZ: Dimension arrow size
DIMAUNIT: Angular dimension label format
0: decimal degrees
1: deg/min/sec
2: gradians
3: radians
4: surveyors
DIMAZIN: Trailing zeroes for angular dimensions
(0: on, 2: off)
DIMDEC: Set linear dimension label precision (0-8)
DIMDLI: Dimension line increment
DIMEXE: Extension line extension
DIMEXO: Extension line offset
DIMGAP: Dimension line gap
DIMLUNIT: Set linear dimension label format
1: scientific
2: decimal
3: engineering
4: architectural
5: fractional
DIMTSZ: Dimension arch tick size (0 for arrow)
DIMTXT: Dimension text height
DIMZIN: Trailing zeroes (0: on, 8: off)
-t, -substitute=FONT1:FONT2
Substitute FONT1 with FONT2 in all texts
PDF import options:
-noimages Don't import images from PDF
-relpath Store images with relative path
Note: relative images paths are not properly
supported by the DXF/DWG format. Applications
may or may not load images from relative paths.
-noclipping Don't clip content to clipping areas
-p, -page=PAGE Set page to import from PDF file
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'.