Replace Geometry from the Command Line

The Replace Geometry command requires a configuration file that contains relevant information for each Geometry which is being replaced.

The format of this file is as follows:For each section to be replaced, include a line formatted where the delimiter is the '#' character:
<cfg file section> # <target section name> # <CAD file> # <import units> # <Geometry material> # <mesh (y/n)> # <Min Size/Element Size> # <Max Size> # <Max Deviation> # <Max Angle>
  1. If you use the meshing option n, the default mesh import options will be used.
  2. If you use the meshing option y, the number of arguments after the y will determine the approach used. A single value will use the Size and Bias approach, and four values will use the Rigid Body approach.

    Example

    The cfg file section is a unique identifier for each object. You can assign any value provided that it is unique to any other cfg file section used in the file.
    Section1 # guide 1 # D:\Wall21.stl # m # steel # n Geometry will be imported using default mesh options
    Section2 # guide 2 # D:\Wall22.stl # mm # steel # y # 10 Geometry will be imported using size and bias approach and Element size 10mm
    Section3 # guide 3 # D:\Wall23.stl # mm # steel # y # 10 # 100 # 1 # 15  The Geometry will be imported using the Rigid Body approach and the four parameters shown
  3. Reference the config file from the command line as follows:
    edem.exe --console -i td.dem --rg rgconfig.txt -R