.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ReadDwgFile

0 REPLIES 0
Reply
Message 1 of 1
nlvvch
263 Views, 0 Replies

ReadDwgFile

Hi, Iam unable to run the following code, can u please suggest better way. Iam not able understatinding what I did the mistache i search lot site just they using the following lines of code and the same code while Iam trying my pc here Iam gettting the err: an Unhandle exception.
can u please give me solution for inserting block external from the directory into active document.

thanks and regards
venkatesh


using (Database db = new Database(false, true))
{

try
{
db.ReadDwgFile(res.StringResult, System.IO.FileShare.Read, true, "");
}


catch (Autodesk.AutoCAD.Runtime.Exception ex)
{

ed.WriteMessage(

"\nUnable to read drawing file.\n " + ex.Message

);

return;

}
}
0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost