03-29-2020
11:59 PM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
03-29-2020
11:59 PM
Insert Block In Autocad Using C#
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
03-30-2020
01:08 AM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
03-30-2020
01:08 AM
Are you trying to insert already existing block or you first create block and then try to insert it with that method?
03-30-2020
01:55 AM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar