General: all the commands begin with an @. To comment-out a line or to insert a comment, place a hash sign (#) in front of it.
The table below provides explanations for all the commands that occur in the batch file.
Command |
Use |
Example |
AUTODOCUMENT |
Creates the file names based on the name of the source file. When exporting from Allplan, the file name is based on the setting in Interfaces options, Layer assignment tab, Create destination file name based on area. |
DWG, DXF, DGN |
CFG_FILE |
Specifies whether a specific configuration file is to be used. |
|
CONVERSION_MODE |
Specifies whether the file is to be used for importing or exporting. |
IMPORT, EXPORT |
DEFAULT_SETTINGS |
Sets the parameters back to their defaults. Corresponds to the Reset button in the Options dialog box. |
|
DEST_DIR |
Path where the destination documents are to be created. Only necessary when exporting. |
C:\TEMP\DXFFILES |
DEST_DOC |
Specifies the file name of the destination document. The extension is generated automatically in accordance with the destination system (e.g., dxf). Note: This setting is always only valid for one document. When converting several documents, you need to make a DEST_DOC entry for every one. |
TB000001 to import the file to drawing file 1. Unless specified otherwise (here), the file is imported to the current drawing file. |
DOCUMENT |
When importing: file name of source document. The folder is taken from SOURCE_DIR. When exporting: file name of destination document. The folder is taken from DEST_DIR. |
A.DXF |
DX, DY, DZ |
Enter an additional offset in m. |
|
LAYOUT_NAME |
Name of the layout in the AutoCAD file to be imported |
|
NemetschekBatch |
Initial command for starting the conversion |
|
PLANSCALE |
You can use this to set the plan scale. Corresponds to the Plan scale entry in the Options dialog box. |
|
PROJECT |
Creates a project with the name of the project and description. The layers are managed on a project-specific basis; all other project resources are managed on an office-specific basis. |
|
SCALE |
Enter a scale. Corresponds to the Resizing factor entry in the Options dialog box. |
|
SOURCE_DIR |
Path where the source documents reside. Only necessary when importing. |
G:\DXF_FILES |
SYSTEM |
You can start external programs here. Tip: you can also use this command to run the DXF Tools utility in the Services application and have the DXF files tested and fixed. |
"dxftool -clean2 g:\e.dxf" |
THEME_FILE |
Specifies path and file name for a favorite file. |
|
TITLE |
Drawing file name or layout name (not the file name!) |
@TITLE "imported doc.dwg |
UNIT |
Enter the unit as a multiple of mm. Corresponds to the Unit entry in the Options dialog box. |
1,000 to set the unit m. |
VERSION |
Specifies the version of the destination file. |
12, 13, 14, 2000, 2002, 2004, 2007, 2010 |
XREF_PLANSCALE |
Specifies the reference scale for drawing files placed in a layout. |
|
XREF_POSITION |
Initial value the program uses to to look for empty drawing files for layout elements. |
@ XREF_POSITION 20 # find empty drawing files with numbers < 20 |
(C) Allplan GmbH | Privacy policy |