Message 1 of 5
Display of Proxygraphics when saving dwg using ReadDwgFile?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to handle multiple DWG files containing MagiCAD proxy elements.
An easy and very fast method is to access the files using the ReadDwgFile
Database db = new Database(false, true);
using (db)
{
db.ReadDwgFile(dwgfile.FullName,FileOpenMode.OpenForReadAndAllShare,true,null); // open the dwg fileAnd then save the files using:
db.RetainOriginalThumbnailBitmap = true; // retains thumbnail previw image db.SaveAs(dwgfile.FullName, true, DwgVersion.AC1024, null);
However, when using this method, the display of MagiCAD proxy entities are not saved. The DWG fil still contains the proxy entities, it's just the AutoCAD representation of the elements that have been altered.
Is there a method to handle 3rd party applications when using the .ReadDwgFile?
Morten Bastue Jacobsen
Rambøll Danmark A/S
www.ramboll.dk
Rambøll Danmark A/S
www.ramboll.dk