Message 1 of 15
Not applicable
03-19-2014
07:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm inserting a block using ReadDwgFile(). The block has an extension dictionary which I want to preserve in the inserted block.
If I do it manually , for example, by dragging it from Design Center into Model Space, when I look at the block definition in the block table (using MgdDbg) the extension dictionary is there, which is what I want. When I try it in code the extension dictionary is not included.
Here's the code I am using.
using (Database sideDb = new Database(false, true))
{
sideDb.ReadDwgFile(blkFile,FileOpenMode.OpenForReadAndReadShare, true, "");
newObjectId = targetDb.Insert(Path.GetFileNameWithoutExtension(blkFile), sideDb, false);
}
What can I do to improve it to get the desired result?
Thanks
Craig
Solved! Go to Solution.