Select to view content in your preferred language

Clickable hyperlink in arcpy geoprocessing details

155
1
02-06-2025 10:20 PM
Status: Open
Labels (1)
Bud
by
Esteemed Contributor

From @PeterKonrad in arcpy geoprocessing details clickable hyperlink:

[I want to] add a clickable hyperlink to the details of a custom python geoprocessing tool in ArcGIS Pro…I would like the end user to have the option to open the output pdf file from the results window.

Bud_0-1738909166344.png 
1 Comment
MErikReedAugusta

think I remember one of the Error reporting functions resulting in a clickable link, which would imply the basic functionality is there in the underlying structure.

It's also worth noting, though, that unlike Desktop, the details don't show up automatically, and I know many who never even glance at them, which severely altered how I write my scripts and what sort of debug/feedback I write.

If you do want this end result, a near-term workaround might be a Boolean checkbox for whether to open the file when done.  If they check the box, you call the relevant Python function to open the file in the native system viewer; I haven't used it in forever, but a quick Google suggests the command might've been os.startfile, though you'll want to check me on that.