behClevest

Applying Bitgates Weights On ArcPy Geometric Network

Discussion created by behClevest on Mar 16, 2017

I have a Transformer feature in a Geometric Network which has a field called `PhaseDesig` and it has five types of unique attributes [0, 1, 2,4,7] like this image

 

I used this code to generate Geometric Network

 

arcpy.CreateGeometricNetwork_management(Electric, "Electric_Net",
"Power SIMPLE_JUNCTION YES;\
Fuses SIMPLE_JUNCTION NO; \
Transformer SIMPLE_JUNCTION NO; \
Conductor SIMPLE_EDGE NO;",
"0.5",
"PhaseDesig Bitgate #",
"Transformer PhaseDesig PhaseDesig; \
Fuses PhaseDesig PhaseDesig",
"",
"PRESERVE_ENABLED")

 

but this only added 

 

Can you please let me know how I can apply all 5 binary weights into the bitgate of each field. Thanks

Outcomes