- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am trying to read a dwg file in a side database and insert it into a new drawing:
using (Database source_db = new Database(false, true))
{
// Read the DWG into our side database
source_db.ReadDwgFile(path, FileShare.Read, true, "");
bool res = source_db.NeedsRecovery;
// Insert it into the destination database
_db.Insbase = new Point3d(5, 5, 0);
ObjectId block_id = main_db.Insert(Path.GetFileNameWithoutExtension(path), source_db, false);
using (BlockReference reference = new BlockReference(_db.Insbase, block_id))
{
Add(reference);
}
}
Everything works, except the dashed lines in source_db look like solid lines in main_db. What am I missing?
Thank you
Solved! Go to Solution.