0

I've created an ArcGIS tool using ModelBuilder, 10.3.1. One of the inputs must be a numeric value typed in by the user. Thus there is no need for the model to display the default folder selection button for that input (see the red X in the attached screen shot). How do I remove the button so that the user is not tempted to click it?

enter image description here

4
  • 2
    Call it a string or number instead of a folder. How is this value used in the model? Is it a variable? if so you can change the type from 'folder' to 'integer' or 'double'. Commented Mar 13, 2017 at 23:00
  • @MichaelMiles-Stimson, with a little more information, you could post this as an answer.
    – Fezter
    Commented Mar 13, 2017 at 23:37
  • @Fetzer, I had used the default data type - "Any Value". Based on the comments from you and MichaelMiles-Stimson, I figured out how to change the data type, and I now have it set to "Double". That solved it, thanks! The dreaded button is now gone. I was not aware of this data type setting, so it's nice to learn something. Feel free to post it as an answer and I'll give you credit.
    – Stu Smith
    Commented Mar 14, 2017 at 1:08
  • @Fezter, I have enough information now to answer the question. Commented Mar 14, 2017 at 1:29

1 Answer 1

1

Model builder parameters have a Type and depending on that type the display and behavior on the tool interface is set.. for example if you set the parameter as 'Feature Class' the browser will only browse for feature classes, either shapefile or geodatabase and not allow numbers, files, folders or drives as input.

You're getting the folder browser because your parameter is set to a type that can be browsed for. Depending on how you create the parameter it is possible to specify the type for variables (right click on blank space, select create variable) but not so much for tool parameters (right click on an oval, select Model Parameter) as the tools themselves have determined the type they expect.

There are limits on how much you can change a variables' type, once created, for a radical change like folder to integer it might be better to remove the parameter and recreate it with the correct type... of course you can change the type to 'any value' but this could cause problems later if you're expecting a number and get a string instead.

For more information read A quick tutorial on creating a model with parameters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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