Short Version: Is there an equivalent to the "ParameterValueByName" function found in the VB Script parser of a network attribute script evaluator.
Long Version: I have a custom road network that has unique impedance values for a handful of of vehicles. (for example a tractor trailer may take 30 seconds to traverse a segment with a steep incline where a car may only take 15 seconds). I have a Python tool that allows the user to select the vehicle of interest and solves the route with the cost and impedance specific to that vehicle. It also gives the ability to select multiple vehicles at once, and it automatically looks at each segment, finds the quickest cost and applies it. So if you pick car and tractor trailer, it will compare the costs of the two for each segment and apply the quickest one. I have accomplished this using the attached VB Script code in the attributes evaluator. The selected vehicles are passed to the evaluator as a string using the "Update Analysis Layer Attribute Parameter" tool in the network analyst toolbox. The VB Script code works, but this network is destined for ArcGIS Enterprise so as i understand it the work must be done in python. I have also attached how I believe the python logic should go. This returns a "NameError: 'ParameterValueByName' is not defined.
The attribute in question has 2 parameters. "Vehicles" set to string with no default value, and defaultSpeed set to double, with a default value of 60.