.NET

Reply
Distinguished Contributor
136 Posts
5 Kudos
Registered: ‎07-24-2009
Post 1 of 1

DBDictionary RasterImageDef

148 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
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!