4

I have a number of *.lyr files which are pointing to various .bmp files which are used as marker symbols in ArcGIS for Desktop 10.1

I was wondering if there is a way to extract the file paths of the *.bmp files each *.lyr file uses for its picture symbol.

Is it possible to do this using Python?

  • Why not just add them to a map and follow through the Symbology tab of the Layer Properties where that should be revealed? – PolyGeo Oct 9 '13 at 12:21
  • I have many layers files, each pointing to many .bmp files, so this would be quite a tedious process. I was hoping there was an automatic way to extract these paths. – Dan_h_b Oct 9 '13 at 14:09
  • I think ArcObjects will be your only option to do this programmatically. – PolyGeo Oct 9 '13 at 19:44
  • as far as I can tell the picture itself is imported into the stdole.IPictureDisp for IPictureMakerSymbol/IPictureFillSymbol and not the reference to the bitmap. – Michael Stimson Oct 12 '13 at 10:31
1

On the basis of @Michael Miles-Stimson concluding that the ...

picture itself is imported into the stdole.IPictureDisp for IPictureMakerSymbol/IPictureFillSymbol and not the reference to the bitmap

I have concluded that this cannot be done using ArcPy (nor in its underlying ArcObjects).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.