I would like some support on creating a specific trace configuration. I’m looking to setup a trace that as result will display a selected HV Cable section wand the result should also display the total cable section length and cumulative lengths L1,L2,L3, L4 to each joint.
Then, if a barrier point for a fault location is added as well, the trace should stop there and the results should display the total cable section length up to barrier and cumulative lengths L1,L2,L3 to each joint.
The results aim be informative for users, rather than used in further analysis.
The attached diagam should provide a better understaning on what the aim of the trace would be.
Any help is much appreciated. Thank you.
Solved! Go to Solution.
As @gis_KIWI4 noted you can do this using multiple traces, but that process can be quite slow since you will have to run a trace multiple times. If you're comfortable with scripting/code and JSON, you can run a single trace to create a JSON file that you can then parse to calculate the lengths yourself. It's a bit more work, but if you find the other approach takes too much time to run this is your next best option.
Read this article about how to parse subnetwork JSON files to learn more.
It's going to be hard to achieve this via a trace configuration but could be achievable via a modelbuilder/python code solution.
The reason being you will have to do this in multiple steps and traces to compile the information you are after.
As @gis_KIWI4 noted you can do this using multiple traces, but that process can be quite slow since you will have to run a trace multiple times. If you're comfortable with scripting/code and JSON, you can run a single trace to create a JSON file that you can then parse to calculate the lengths yourself. It's a bit more work, but if you find the other approach takes too much time to run this is your next best option.
Read this article about how to parse subnetwork JSON files to learn more.