0

I am working in ModelBuilder in ArcGIS Desktop. I want to stop models from working when the current Time is greater than the project over time. Below snap showing where I am making a mistake please help. enter image description here

  • Welcome to GIS SE! As a new user be sure to take the Tour to learn about our focussed Q&A format. – PolyGeo Apr 10 '18 at 7:19
  • Are you wanting the Calc. Value date compare to identify if the Field Calculation runs or not? If so, hook that process to the result of the Continue object. – artwork21 Sep 19 '18 at 12:14
  • I tried but not work – Pradip Sep 21 '18 at 5:28
0

I have not tested this but you could try using an if statement in a Calculate Value tool to issue a sys.exit() if today's date is greater than the date you want your model to cease working.

Then make that tool element a precondition to the rest of your model running.

Alternatively, as commented by @BERA:

You could rename or delete the Toolbox (*.tbx file) using a script in the operating system which executes at the desired date.

  • Thanks BERA , Sorry to say that, i am new in programming. I am core gis. Please can you help me to execute this syntax. – Pradip Jun 23 '18 at 9:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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