.NET

Reply
Contributor
Posts: 11
Registered: ‎10-25-2005
Message 1 of 1 (55 Views)

How can close AxDbDocumentClass Open

55 Views, 0 Replies
08-16-2006 06:03 PM
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 !!!

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community