Applying Bitgates Weights On ArcPy Geometric Network

850
0
03-16-2017 02:14 PM
BehrouzHosseini
Occasional Contributor

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

0 Kudos
0 Replies