So I just ran across this. and would love some help if yall are still on here... I feel my issue is in line with this solution.
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
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 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 integrated python. 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.
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!