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
ever figure this out? i have the same question
No too much work, they will be touching this script frequently in the field.
Now it makes sense
What about 1 parameterDo 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
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.
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.
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
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.