Hi all,
I've to compose a new dwg file from a series of blocks in some other dwg files. I'm completely new to AutoCAD (but a C# programmer) so, I need some clue on how to do this in C#.
Looking on this discussion group I wrote this method and it works fine:
public static AcadBlock CopyBlock(AcadBlock sourceBlock, AcadDocument sourceDoc, AcadDocument destDoc)
{
AcadBlock[] newBlocks = {sourceBlock};
Object idPairs = new Object();
sourceDoc.CopyObjects(newBlocks, destDoc.Blocks, ref idPairs);
return destDoc.Blocks.Item(sourceBlock.Name);
}
but the new block on the source document is not visible. I have to edit it manaully and change something on it to get it showed!
What am I missing???
TIA,
Cabbi