.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DBDictionary RasterImageDef

0 REPLIES 0
Reply
Message 1 of 1
VB_Autocad_guy
352 Views, 0 Replies

DBDictionary RasterImageDef

 

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()

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost