Loosing Dashed line on Insert

Loosing Dashed line on Insert

Anonymous
Not applicable
530 Views
1 Reply
Message 1 of 2

Loosing Dashed line on Insert

Anonymous
Not applicable

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

 

0 Likes
Accepted solutions (1)
531 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

I needed to set main_db.LTScale = 10;

0 Likes