Skip to content

svg2dwg

将 SVG 文件转换为 DWG/DXF 图形的命令行工具。

Usage: ./svg2dwg [OPTIONS]... <drawing file>
Converts the given SVG file to DXF or DWG.
-f, -force Overwrite existing output file
-t, -filter=FILTER Use specified format filter
e.g. DXF R15, DWG R27, etc.
-layer0=color,weight,type
Set layer 0 attributes (e.g. 'white,0.05,Continuous')
-by-layer Set all attributes to 'By Layer'
-h, -help Display this help
-o, -output=FILE Set CAD output file to 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'.