I'm trying to give my python tool an input parameter that allows the user to select the export location/file path that the script will save the resulting feature class to. The problem is that if I want to give the user the functionality of a parameter with a data type that provides the 'browse' icon next to the text box, the parameter validates the chosen path when they confirm and if the file does not exist (because they manually entered a new feature class name to use) then the parameter throws up the little red "invalid" icon.
A built-in tool like "Export Features" auto-populates the output path when the input is selected but from looking at the tool properties, I can't tell how that's accomplished or how it avoids throwing an error.
How do I need to define my Parameter instance to accept that the value may be an "yet to be created" file? So I need to mess about with the ToolValidator class with which I have no experience yet? 😥