Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a tool that I created from a Python script which I update from time to time. Usually I will right-click the tool and choose Import Script, but lately this has been unavailable, as shown below:

enter image description here

This has been happening to almost all the tools I create, usually after a few imports. The problem is that if the script is cached the only workaround is to create a whole new interface, which can be pretty time-consuming. Does anyone know why this happens?

I found this post on the Esri forums describing the same problem: http://forums.arcgis.com/threads/70829-Python-Import-Script-grayed-out

Thanks!

share|improve this question
1  
Is the script for ArcGIS Desktop or Server and is it currently running? –  Mintx Dec 3 '12 at 19:06
    
It's for Desktop (10.1 SP1) and not currently running. –  Mapbert Dec 3 '12 at 19:17
3  
Do you have a strong need to import the script into the tools cache? Why not just allow the ArcGIS script tool to point to the script (on disk) itself. Unless it is for portability or to "hide" the script from a user, there is no need to "Import Script"... –  RyanDalton Dec 3 '12 at 21:16
2  
I've never seen Python scripts get cached using the method @RyanDalton suggests so would recommend using that rather than Import Script which seems to be for Embedding scripts and password protecting tools –  PolyGeo Dec 4 '12 at 3:11
1  
I rebuilt the tool without importing and it seems to be working better, so maybe that is the way to go. Thanks guys. I still don't understand though what would make the Import Script option disappear like that (suppose I did need to embed the script, for example). Anyone from Esri listening? :) –  Mapbert Dec 4 '12 at 19:06

1 Answer 1

In your Comment you ask if anyone from Esri is listening.

Although a number of Esri staff are regular users of this site, I suspect each will be focussed on their own area(s) of expertise.

Consequently, if this issue is still of concern to you then I think that you should submit this to your local Esri Support. However, before doing that I recommend that you try to have it in a reproducible form.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.