Including value list of network analyst restrictions in script tool

Discussion created by morangm on Nov 17, 2011
Latest reply on Nov 28, 2011 by morangm
I am trying to create a script tool that performs a Network Analyst OD Cost Matrix Calculation with some extra bells and whistles of my own.

I would like to include among the input parameters in the GUI a place where the user can check which restrictions to include in the analysis, just like you can do in the GUI version of the real Network Analyst tools.  Because the list of possible restrictions is unique to each Network Dataset, I need to be able to draw this list from the specific Network Dataset the user picks for their analysis.  Unfortunately, I can't figure out how to include such a list in my GUI tool.

Is there a way I can a) get that list of restrictions from the Network Dataset the user selects in the GUI (ie, this would mean the GUI would have to update itself after the user selects the Network Dataset file), and b) put that list into a ValueList of checkboxes for the user to select in another parameter?