I wrote a small python script in the Display tab of a feature class to hyperlink to documents based on parsing a field value. This part works ok. Click the hyperlink lightning bolt, click on a feature, and the associated document displays. Woo hoo! But when I then click on Save or Back to extent icons (and possibly others), Arc hangs with the message 'Drawing selected graphics...' It's not drawing anything as far as I can see, and eventually gives the 'Not responding' message.
Possibly this is a bug in my script, but I'm thinking it may be a bug in Arc, where the cursor thinks it's still hyperlinking to something. Any experience with this? Thanks. ArcGIS 10.1 & 10.2.1
Possibly this is a bug in my script, but I'm thinking it may be a bug in Arc, where the cursor thinks it's still hyperlinking to something. Any experience with this? Thanks. ArcGIS 10.1 & 10.2.1
Code:
import os, threading
def OpenLink ([OLDPLATE] ):
image = [OLDPLATE] .split('/')[0]
if image != None and len(image) > 0:
loc = r"\\path\to\docs"
folder = image[:2].strip()
if len(folder) == 1:
folder = folder + " "
card = os.path.join(loc, folder, image) + ".tif"
threading.Thread(target=os.startfile, args=(card,)).start()
return