Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"

$
0
0

i am trying to convert dgn file to pdf file and that pdf file has to be get printed.not able to convert dgn file to pdf file  in bentley microstation v8i.   Previous it was working in   bentley microstation v7.

code :

for (i = 0; i < dt.Rows.Count; i++)
{
oCopyContext = new CopyContextClass();
Element ele = default(Element);
DLong Id = default(DLong);
Id.High = 0;
Id.Low = Convert.ToInt32(dt.Rows[i][0].ToString());

{
ele = (Element)(ofile.DefaultModelReference.GetElementByID(ref Id));
if (ele != null)
{
ele.IsLocked = false;
ele.Color = 152;
ofile.DefaultModelReference.CopyElement(ele, oCopyContext);
}
}
}

error at  the line : ofile.DefaultModelReference.CopyElement(ele, oCopyContext);

source : Interop.MicroStationDGN

stack Trace : at MicroStationDGN.ModelReferenceClass.CopyElement(_Element Element, CopyContext CopyContext)
at Xorail.CADAutomation.CADInterface.BentleyInterfaceBase.StartPDFForSingleFileComparer(String designfile, String outFileName, String pdfpath, DataTable dt, DataTable dt1, String Filetype) in d:\VisualStudioProjects\CADAutomation\CADInterface\BentleyInterfaceBase.cs:line 10124

please provide me solution..its  much needed.


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>