.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
DBDictiona ry RasterImag eDef
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
93 Views, 0 Replies
03-01-2012 01:50 PM
Do I need to do anything besides Commit to complete a change in the DBDictionary?
For Each dicentry As Autodesk.AutoCAD.DatabaseServices.DBDictionaryEntry In imageDict Dim myRasterImgDef As Autodesk.AutoCAD.DatabaseServices.RasterImageDef = _ CType(myTrans.GetObject(CType(dicentry.Value, Autodesk.AutoCAD.DatabaseServices.ObjectId), _ Autodesk.AutoCAD.DatabaseServices.OpenMode.ForWrit e), _ Autodesk.AutoCAD.DatabaseServices.RasterImageDef) 'Find Matching RasterImage For Each ImgAttachment In RasterImgCol If myRasterImgDef.Handle.ToString = ImgAttachment.Handle Then myRasterImgDef.SourceFileName = ImgAttachment.NewName 'Reset Autocad's RasterImage Reference FullFileName End If Next Next 'Commit Transaction myTrans.Commit()
