I have built a custom cost evaluator in my network data. One aspect of it relates to edges and I have no problem with that.
I would now like to complicate it and add a component of the cost linked to junctions. If, in the evaluators window, for that attribute and in the line that corresponds to junctions (the 3rd one) I add a constant value for junctions, I have the behaviour I want.
However, rather than a constant I would like this cost to be the value of a field which I plan to add to my junctions table (the table associated with the layer whose name ends with ND_junctions). The "Field" type of evaluator is not available for the junction. Therefore I have tried going round this with the "VB script" type of evaluator but I failed miserably.
Could you let me know how I would set the cost for junctions to be field "F" in my table xxx_ND_junctions?
Couldn't you do the same thing with a turn feature class? Even a 'straight' turn can be modeled that way...
Hi Joe and thanks for your reply,
I have no experience whatsoever of working with turn feature classes and from what I just checked on the documentation it doesn't seem that straightforward to me. Can you tell me a bit more what it would entail? Do you really think that it is simpler than finding the proper way to have a function in the evaluator that connects to a field?
... Now bring up the properties of your network dataset and add the new point feature class as a source and rebuild the network. Now the system junction feature class will have no records as all the junctions have been supplied from your new point feature class.
Most likely the data is in use and thus you are being prevented to change it or could be read only.
Perhaps, close all your ArcGIS applications (like arcmap), then Start ArcCatalog and see if you can
alter the schema.
What is the source of your features for the network dataset? Is it a shape file? In that case you will have to put your data in a file geodatabase. For shape files, you can only make a network dataset from one line feature class.