open "D:\PROGRAM FILES\KONGLONGTOOLS\DZFH\1000.dwg" -purge a * no qsave close
open "D:\PROGRAM FILES\KONGLONGTOOLS\DZFH\1001岩层产状.dwg" -purge a * no qsave close
open "D:\PROGRAM FILES\KONGLONGTOOLS\DZFH\1002岩层水平产状.dwg" -purge a * no qsave close
open "D:\PROGRAM FILES\KONGLONGTOOLS\DZFH\1003岩层垂直产状.dwg" -purge a * no qsave close
open "D:\PROGRAM FILES\KONGLONGTOOLS\DZFH\1004倒转岩层产状.dwg" -purge a * no qsave close
open "D:\PROGRAM FILES\KONGLONGTOOLS\DZFH\1005片理产状.dwg" -purge a * no qsave close
这是批量打开指定路径下DWG文件,执行purge命令,并输入A参数 * 参数 NO 参数 最后快速保存并关闭的例子,你根据你的需要来改写.