Command Line Usage
The following is the basic DwgMerge 2023 command syntax:
DwgMerge2023 -base=<BASE FILE> -merge=<MERGE FILE> -out=<OUTPUT FILE> -over
The main elements of every command are (1) the actions, and (2) any parameters that affect the output.
All command parameters are preceded by a dash (-). Some parameters will be noted as letters and others will be noted as numbers, while others (such as directory paths) will follow the dash with a space and then a text string—as shown in the previous example. Parameters and their values can be seperated by either an equal size ("=") or a space.
The actions in the above-noted example are indicated by the “-base=”, “-merge=”, “-out” and the “-over”, plus the three placeholders —as detailed here:
<BASE FILE> | This placeholder should be replaced with the name of the source (input) file —the .DWG or .DXF-format file you want converted. If the input file is not in the same directory as DwgMerge 2023, then either the full or relative directory path must be entered—as shown here: -i c:/MainDir/SourceDir/OrigFile.dwg The -i is optional if this is the first parameter listed. If there are any spaces in the file name, the file name must be enclosed in quote marks (usually double quote marks on Windows and single quote marks on Linux/UNIX). |
---|---|
<MERGE FILE> | This should be the name of the merge file containing objects to be added to the ouput, this is file of type XML or JSON. If the output file is not to be created in the same directory as DwgMerge 2023, then the full directory path of the destination directory must be entered—as shown here: -o c:/MainDir/MergeDir/MergeFile.JSON. If there are any spaces in the file name, the file name must be enclosed in quote marks (usually double quote marks on Windows and single quote marks on Linux/UNIX). |
<OUTPUT FILE> | This should be the name of the output (resulting) file. If the output file is not to be created in the same directory as DwgMerge 2023, then the full directory path of the destination directory must be entered—as shown here: -o c:/MainDir/DestDir/NewFile.dwg. This parameter is optional. If there are any spaces in the file name, the file name must be enclosed in quote marks (usually double quote marks on Windows and single quote marks on Linux/UNIX). |
-over | This specifies the action performed on the <OUTPUT FILE>, using the <BASE FILE> and >MERGE FILE>. |