.NET

Reply
Distinguished Contributor
VB_Autocad_guy
Posts: 136
Registered: ‎07-24-2009
Message 1 of 1 (147 Views)

DBDictionary RasterImageDef

147 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.ForWrite),  _
                                              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()

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.