Oops, sorry, I misinterpreted your first screenshot. I understand now, and it seems like you have the right idea.
In your original post, you mentioned that you updated the network dataset properties and rebuilt the network dataset. If I understand correctly, you did this:
- Opened the network dataset properties
- When to the Travel Attributes -> Costs tab
- Selected your PublicTransitTime cost attribute
- Opened up the Parameters section
- Updated the default value of the Exclude Lines parameter to be "25 26"
- Rebuilt the network dataset
Did I get that right?
What you did here is to update the default value of the parameter. The parameter belongs to the cost attribute, which in turn is used by a travel mode. However, the travel mode need not use the default value of the parameter. It can be configured to use a different value. For example, this is often used with, say, height restrictions. The restriction attribute can have a parameter associated with vehicle height with is set to some default, but if you make a travel mode for modeling tall trucks, you would set the parameter value to something bigger just for that travel mode.
To further complicate matters, a network analysis layer can have its own custom travel mode that is different from any of the travel modes saved on the network. So, you could use the default travel mode on the network but then modify it in the layer properties to change the parameter values.
I suggest you open the travel mode properties of the Route layer you're currently solving and make sure the updates to the parameter values are actually being used by the layer itself. My guess is that the changes you made to the default values are not being used because you created the Route layer before updating the defaults, so it's using the values present in the travel mode before the changes. I could be wrong, but this is what I would check next.
All about parameters: Use parameters with network attributes—ArcGIS Pro | Documentation
All about travel modes, including how to update parameters: Travel modes—ArcGIS Pro | Documentation