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;
}
}