Message 1 of 3
Insert Block In Autocad Using C#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I tried to insert the block in autocad by Using C# in COM Object method. in that am getting error that "Key not found"
This is my function
public AcadBlockReference NewblockInsert(Double[] Inspt, string BlockName )
{
double Dimsacle = 1;
AcadBlockReference BlkInsert=null;
try
{
BlkInsert = (AcadBlockReference)CadDoc.ModelSpace.InsertBlock(Inspt, BlockName, 0, 0, 0, 1);
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
return BlkInsert;
}
Could you please provide the solution for that
Regards
Shunmugasundaram