- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Ok I am computer savvy but not a coder by trade, so need some help to see if this is possible and maybe point me in the direction of how to do it. I searched the forum but couldn't find anything I could modify to work.
I am attempting to write a code that searches a .dwg for a text string, then adds a hyperlink to that text string. The text strings/associated hyperlink pairs are in an excel file. So I have been trying to write a LISP program to do the following.
1. Select path to excel file with text/hyperlink pairs
2. Select path to directory with all the .dwg files to crawl through for the text strings found in the excel file
3. Select a color to change the text to (so you know what has been changed)
4. Run so that it crawls through each .dwg in the folder, finds the text string, and if it does find it, add a hyperlink from the excel file and change the color.
5. The extra would be if i had a dialog box pop up... havent been able to get it to do this.
I first wrote this in python but my new job wont let me run python on my computer... and has stuck me with an older version of AutoCAD (2016) so it doesn't have a way to run python out of the box. I tried to write it in LISP and and keep getting errors as I am not familiar with the syntax... even tried chatGPT for some help and it couldn't get it either. I think my issue is with the .dcl code I am attempting to write, even trying to do it without a dialog box I still couldn't get it. I have burned a lot of hours trying to do this so I figured I would ask people who actually know what they are doing!
Anyways if anyone has some advice I would love the help! I have to hyperlink about 3000 documents and I really don't want to do it manually!
Solved! Go to Solution.