"System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exceptio


Applies To
Product(s):AutoPIPE
Version(s):ALL;
Area: Export
Date Logged
& Current Version
June 2022
12.08.00.063

Problem:

While trying to export a file to DGN with "Deflected Model Graphics" option enabled, the following message appeared:

---------------------------
---------------------------
System.Runtime.InteropServices.SEHException (0x80004005): External component has thrown an exception.
   at CCreateGFWGraphics.RecreateGraphics(CCreateGFWGraphics* , HWND__* , Int32 , Int32 , Single , basic_string<char\,std::char_traits<char>\,std::allocator<char> >* )
   at AP_DGNX_Wrapper.DGNX_Wrapper.LoadModel(IntPtr obj, IntPtr winHandle, Int32 RenderMode, Int32 IsDeflection, Double SFactor, String DefFilePath)
   at AP_NET_DGN_ExportX.FormDGN.Form1_Load(Object sender, EventArgs e)
---------------------------
OK  
---------------------------

Why and how to avoid he issue?

Solution:

In this particular model, the model was round tripped (918691) and followed round trip instructions to thoroughly review the model and comparison checks. The model now exports a file with deflected load case. 

See Also

Blank messages

Bentley AutoPIPE