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

DBDictionary RasterImageDef

135 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),  _

                    '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



                'Commit Transaction


You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community