Is it possible/could someone show me what to add to a python script so that when it runs in ArcMAP the Parameters Window does not pop up?
Thanks in Advance
Paul
Do you mean so that it has no parameters? or is this a python toolbox that you want certain parameters hidden until some precondition is met... A visual of what you want hidden in your toolbox and when would help
Yes my script has no parameters so when a user click on it they see a parameters window that appears and no inputs to enter so they just hit Ok... I want to streamline the work flow and just remove the parameters window that appears.
Now it makes sense
What about 1 parameter
Do you wish to continue? with a Yes/No as the parameter type and Yes set as the default. if they select No, then cancel the script, if yes, it will proceed
No too much work, they will be touching this script frequently in the field.
Looks like you want a field user friendly button. In this case I would go with a custom button. Please look at Creating a python add-in button
You can run your script from ArcMap's Python window. First you need to import the toolbox or python toolbox.
arcpy.ImportToolbox(r'C:\MyToolbox.pyt')
Now if you have a tool in toolbox defined as MyTool with a single parameter you can call it as:
arcpy.MyTool('Hello')
Hope that helps.
ever figure this out? i have the same question