[MSCE] C# saveas DXF時為何會中止Microstation?

您好,

以下程式在saveas DXF時為何會中止Microstation?

string fileName= "d:\\v8i\\test-001.dgn";

// get active dgnfile or open a dgnfile
BIM.DesignFile _DesignFile;
_DesignFile = msApp.OpenDesignFile(fileName, false, BIM.MsdV7Action.Workmode);

string newdgnfile = fileName;
_DesignFile.SaveAs(newdgnfile, true, BIM.MsdDesignFileFormat.V8);

string dxfnewdgnfile = newdgnfile.Replace(".dgn", ".dxf");
_DesignFile.SaveAs(dxfnewdgnfile, true, BIM.MsdDesignFileFormat.DXF);   //會中止Microstation?