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

How can close AxDbDocumentClass Open

0 REPLIES 0
Reply
Message 1 of 1
sieben
156 Views, 0 Replies

How can close AxDbDocumentClass Open

static public void DBX_InsertBlock(string fileName, string blockName,AcadModelSpace CurSpace)
{
AxDbDocumentClass dbx = new AxDbDocumentClass();
dbx.Open(fileName, "");
AcadBlock[] blk1 = new AcadBlock[1];
for (int i = 0; i < dbx.Blocks.Count; i++)
{
if (dbx.Blocks.Item(i).Name == blockName)
{
blk1[0] = (AcadBlock)dbx.Blocks.Item(i);
Object missing = Type.Missing;
dbx.CopyObjects(blk1, CurSpace, ref missing);
return;
}
}
}
I Copy Block from other File,but how can i close dbx or dispose it ,because i want to open the fileName File to edit.
Thanks !!!
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