To Replace Cells from the System Command Line
- In a Command Prompt window, set the current working directory to the directory in which the MicroStation PowerDraft executable program is installed — for example, C:\Program Files\Bentley\PowerDraft\PowerDraft .
At the system command prompt, enter:
drbatch repcell.ma <DGN_file> <cell_library> <y | n> <cell_to_replace> <replacement_cell>
where DGN file is the DGN file on which to operate, cell_library is the cell library that contains the replacement cell, y keeps attributes, n does not keep attributes, cell_to_replace is the name of the cell in design_file to replace, and replacement_cell is the name of the replacement cell in cell_library.
MicroStation PowerDraft starts without its normal graphical interface, and processing of the job begins. A MicroStation PowerDraft console (Text) window opens so you can monitor the progress of the job.