The following message appears when trying to export a model
---------------------------
---------------------------System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception. at AP_API.Segment.GetLineNumber(Segment* , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* ) at APNET_API.APN_Segment.GetLineNumber() at AP_NET_DGN_ExportX.DgnExport.DgnExporter.GetLevelNamePipe(APN_Segment currSeg) at AP_NET_DGN_ExportX.DgnExport.DgnExporter.ExportGraphics() at AP_NET_DGN_ExportX.DgnExport.DgnExporter.ExportGraphicsForMode() at AP_NET_DGN_ExportX.DgnExport.DgnExporter.ExportDgn(String sNewFileName, String sDocName) at AP_NET_DGN_ExportX.DgnExport.DgnExporter.ExportToDgn(APN_DB DatDB, String sNewFileName, String sDocName, String seedFileName, String fileECSchema, Int32 gMode, Int32 disptype, Int32 solidmde, Int32 linemde, Int32 deflcol)---------------------------OK ---------------------------
why and how to avoid it?
To date there has only been one occurrence of this issue reported to Technical Support. In this one case, the solution was to round trip the model using instructions here.
If this does not resolve your issue, please submit a service request and submit your AutoPIPE APC file for review.
Export issues
Bentley AutoPIPE
918691, 983983