Select to view content in your preferred language

Setting IncludeBarriersWithResults to FALSE does not seem to work

286
7
Jump to solution
2 weeks ago
EdwardBlair
Frequent Contributor

Hello -

I'm probably missing something stupid, but I can't get a Utility Network downstream trace to exclude barriers from the result set.  I'm setting the TraceConfiguration IncludeBarriersWithResults to FALSE -- see below.   But the results returned always include the barrier features (which happen to be fuses my my use case.)  Note that the equipment *below* the barrier *is* excluded, but not the barrier feature(s) themselves.

Any pointers on what I am missing would be much appreciated.

Thx,

Ed

----------------------------------------------------------------------------------------

using (un)
using (UtilityNetworkDefinition utilityNetworkDefinition = un.GetDefinition())
{
using (NetworkSource networkSource = utilityNetworkDefinition.GetNetworkSource("ElectricDevice"))
using (AssetGroup assetGroup = networkSource.GetAssetGroup(agName))
using (AssetType assetType = assetGroup.GetAssetType(atName))
{
DomainNetwork domainNetwork = utilityNetworkDefinition.GetDomainNetwork("Electric");
Tier sourceTier = domainNetwork.GetTier("Electric Distribution");
TraceConfiguration traceConfiguration = sourceTier.GetTraceConfiguration();
traceConfiguration.IncludeStructures = false;
traceConfiguration.IncludeBarriersWithResults = false;

// proceed to get a tracer from the trace manager and execute a downstream trace with the

// above trace configuration

0 Kudos
1 Solution

Accepted Solutions
RobertKrisher
Esri Regular Contributor

@EdwardBlair if you really need to hide that feature you can add an output condition to the trace that will explicitly hide it. In this case, adding an output condition where the category is not equal to E:Fuse.

RobertKrisher_0-1779372962034.png

I apologize for using screenshots of water data for this issue, I was having issues finding a spot in the electric project I was using where the fuses had terminals.

View solution in original post

7 Replies
RobertKrisher
Esri Regular Contributor

Can you replicate this behavior by running the same trace inside ArcGIS Pro? Does this only happen when the fuse has terminals?

0 Kudos
EdwardBlair
Frequent Contributor

Here goes...

Devices in in the category "E:Switch -Fuse" are defined as barriers for this trace.

Option to include barrier features is un-checked.

Trace is executed stopping at fuses, but fuses are included in the result.

EdwardBlair_0-1779367831671.png

EdwardBlair_1-1779367851573.png

 

 

0 Kudos
RobertKrisher
Esri Regular Contributor

Does the fuse have terminals/does this only happen when the fuse has terminals?

0 Kudos
RobertKrisher
Esri Regular Contributor

I ask about the terminal thing because that is a designed behavior of trace, where we include the device as a barrier if it has terminals, even when the include barrier features option is not selected.

RobertKrisher_0-1779371174870.png

 

0 Kudos
EdwardBlair
Frequent Contributor

Yes.   The fuse has terminals.   Kind of confusing.   But if that's the way it works its good to know.   Thanks for the info.

Ed

0 Kudos
RobertKrisher
Esri Regular Contributor

@EdwardBlair if you really need to hide that feature you can add an output condition to the trace that will explicitly hide it. In this case, adding an output condition where the category is not equal to E:Fuse.

RobertKrisher_0-1779372962034.png

I apologize for using screenshots of water data for this issue, I was having issues finding a spot in the electric project I was using where the fuses had terminals.

EdwardBlair
Frequent Contributor

There you go!   That did it.   Thanks Robert!

0 Kudos