Scripting Import-DGN (Teigha® facilities)
- Last UpdatedJan 24, 2023
- 2 minute read
Runs the Import-DGN (Teigha® facilities) from the command window, or from a script such as a Windows .bat file, a perl program, from PML using the SYSCOM command, use the ImPlant - I2.exe program from the main AVEVA E3D Design executables folder.
All the options for ImPlant - I2.exe are supplied as command-line arguments, for example.
ImPLANT-I2.exe -i "OldTestBed/V8-tank1.dgn" -o Shape.mac
There are several possible options. Most of them correspond to features available in the dialog interface, but there are some others, primarily intended to help automated testing.
|
-h |
Print brief help |
|
-i [path] |
The Input DGN file. Enclose the path in double-quote characters (for example to include spaces), for example: -i "C:\new examples\tank1.dgn" |
|
-o [path] |
The Output Macro file. Enclose the path in double-quote characters (for example to include spaces). If a -o option is not included, the messages are sent to standard output, for example: -o Shape.mac |
|
-m [path] |
the Messages (log) file. Enclose the path in double-quote characters (for example to include spaces). If a -d option is not included, the messages are sent to standard output, for example: -m Shape.lo |
|
-scale N.M |
multiply the size of the model by N.M. A scale greater than 1 makes the imported geometry bigger, and a scale less than 1 makes it smaller, for example, -scale 0.25 |
|
-shift X Y Z |
shift the model by X Y Z mm, for example, -shift 1000 200 -250 |
|
-summary |
print summary information instead of translating the model. |
|
-brief |
print brief messages - this is the default. |
|
-full |
print full messages. |
|
-filezone |
wrap all the output in a ZONE element (default). |
|
-fileequi |
wrap all the output in an EQUIPMENT element. |
|
-filestru |
wrap all the output in an STRUCTURE element. |
|
-filevolm |
wrap all the output in an VOLMODEL element. |
|
-filebare |
do not wrap all the output in an element. |
|
-equi |
wrap top-level DGN elements in EQUIPMENT element(s) (default). |
|
-sube |
wrap top-level DGN elements in SUBEQUIPMENT element(s). |
|
-stru |
wrap top-level DGN elements in STRUCTURE element(s). |
|
-subs |
wrap top-level DGN elements in SUBSTRUCTURE element(s). |
|
-volm |
wrap top-level DGN elements in VOLMODEL element(s). |
|
-svolm |
wrap top-level DGN elements in SVOLMODEL element(s). |
|
-nocontainer |
do not wrap top-level DGN elements in element(s). |
|
-limit N |
translate up to N top-level DGN elements into each container (the default is 1, 0 means 'no limit'). |
|
-skip N |
skip N top-level DGN elements before starting translating. |
|
-process N |
translate only N top-level DGN elements. |
|
-debug |
print verbose messages useful to AVEVA development. |
|
-named |
name the outermost element from the DGN file. |
|
-tolfactor N.M |
multiply the default tolerances by the given number. 10.0 is a coarse setting, 0.1 is a fine setting, and the default value is 1.0. |
|
-unicode |
create unicode output files (utf-8 encoding with a byte-order mark). |