I'm setting up a Script Tool (Arc 10.2.2) where the first parameter will be a CSV file chosen by the user, always from the same folder.
When the user clicks the first parameter's windows navigator drop down (to select the desired .csv) I want the ensuing catalog window to begin at the folder I specify.
I've already tried setting the folder path in the "Default" field of the Parameter Properties Window but that didn't work. This made the path appear in the Parameter field, but when the drop down is clicked that path is ignored and the user is shown an entirely different location.
I'm quite sure the proper validation code will achieve my desired functionality, I just don't know what that is. I have read many ESRI web pages on the topic but have yet to find the proper coding.
How do you force a Tool Parameter Input Field to Begin at a Specific Folder?
I seek the proper function and which module it should be in (i.e. which of the standard 3 validation modules: _init_(self)
, initializeParameters(self)
, or updateParameters(self)
.).
ListFiles
ininitializeParameters(self)
will do what you need. For ArcPy questions please always include a code snippet that shows what you have tried.