2

I have a geodatabase feature class and every day I want to automate the loading of my feature class into a data frame of my map.

At present in my model (below) I add into my data frame the geodatabase feature class but I want to add a checkbox option.

i.e. choose whether to add or not the feature class using a checkbox

enter image description here

This is only part of the tool that I want to do.

This feature class contains reference points for an analysis of service area, which is the reason why I want to automate the data load.

Can I use a checkbox on my tool dialog to control whether, when the model runs, its output feature class gets added to the display (data frame)?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Nov 6, 2014 at 23:01
1
  • To try and make what you are asking clear I have made a substantial edit to it. If I have misunderstood what you were asking then please either improve it by using the edit button or return it to its previous state by using rollback. Commented Nov 6, 2014 at 23:53

1 Answer 1

2

You could add a Boolean variable and expose it as a parameter then connect it as a precondition to the Make Feature Layer. This will allow ALL layers to be loaded if TRUE or none of them if FALSE.

Example model of a precondition controlling order of operations

I don't think you can control each layer as this would require you to interact with the model on every iteration and model builder does not work that way.

answered Nov 7, 2014 at 11:34
1
  • you think it is possible to do this using python script? Commented Nov 7, 2014 at 16:44

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.