- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I had to come up with a unique solution recently and I feel that it may benefit others here. I have attached the Lisp "PHOTOS.lsp" (that is also the command name).
The lisp accomplishes 1 task: Locate any Geotagged photos (from user selected folder [and all sub-folders]) and show their locations in a Geo-Located dwg via a block you choose, which gets hyperlinked to the image.
When you open the lisp, you will need to update the "Variable Inputs" section at the beginning of the PHOTOS command (toward bottom). Here's a preview of that section:
;; Variable Inputs (setq blkName "MyBlockName" ;<-- the block to insert for all photo locations (do NOT use dynamic block) blkDWG "C:\\users\\my folder\\myblockdrawing.dwg" ;<-- if block not in current dwg, where to find it lyrName "_Geo-Photos" ;<-- layer where blocks will be inserted lyrColor 11 ;<-- if necessary to create layer defaultBrowseLocation "C:\\" ;<-- the default path that LM's folder browser opens to );setq
Here's some screenshots of the workflow:
Run command
Browse folders dialog will appear, select the folder which you want to search for all photos
The command begins, once complete you will be prompted:
Here is an example of what my final product looks like.
(no, I won't be sharing my camera block)
SOME IMPORTANT NOTES:
- Clearly this only works if your drawing is Geo-Located (any vertical)
- Most images are taken from phones, and their GPS accuracy can vary, so the location is NOT 100% reliable. I think on average it's about a 40 foot radius of accuracy.
- Sometimes a phone coordinate can be the same for multiple photos, so you might see multiple stacked above each other.
- Yes, hyperlinks are created and when you Ctrl + Click the application is Minimized... AutoCAD knows about this 'feature' and has never fixed it (it's probably not an easy fix, idk).
- Not all images are Geotagged, so if you are noticing that not all photos are being captured, it's most likely because they were not Geotagged.
If you have any questions, please ask.
Best,
~DD
Solved! Go to Solution.