I am creating a model and would like the input to branch off to different tools within the model based on the shapefile type (point, line, polygon). I haven't found a tool in ModelBuilder that will do this and am not very skilled in python.

Is there a tool I'm not seeing or a script that exists for this?

  • There is a code sample in the help that described how to do if/then branching in ModelBuilder using a Python Script tool. – PolyGeo Jan 26 at 0:55
  • 1
    Are you asking how to do the branching or how to do the identification of the geometry type? – J Kelly Jan 26 at 2:48
  • I want the model to branch off to different tools based on the geometry type. So if a point file was ran through the model it would branch to a different process than if a polygon file was ran through the tool. Is this making any sense? – Cody Ginn Jan 29 at 20:37

Your Answer

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

Browse other questions tagged or ask your own question.