If you run a something like the following, you'll be met with a confirmation dialog for existing elements.
This is of course not desirable if you are trying to write some kind of automated task. Change the sysImport.import statement to this:
private void importAOT(str fileName)
SysImportElements sysImport = new SysImportElements();
sysImport.import(#impRemoveExcess | #impIgnoreCheckStatus);
The macros are located in AotExport.
This posting is provided "AS IS" with no warranties, and confers no rights.