arcpy connectivity rules

1127
5
Jump to solution
12-27-2017 03:01 AM
MaherAssi
New Contributor

Dear all,

I am trying to create a geoprocessing tool using arcpy to export the connectivity rules from a geometric network. I was able to create a geoprocessing tool to import the connectivity rules from an excel file. But I couldn't find any way to export those rules using arcpy. 

Is there a method to do this in python?

Regards

0 Kudos
1 Solution

Accepted Solutions
DanPatterson_Retired
MVP Emeritus

the only arcpy properties that can be read for geometric networks are...

http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/geometric-network-properties.htm

and the Tools access is listed here

http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/an-overview-of-the-geometri...

I see nothing specific to geometric networks for exporting unless it is buried in a similar object

View solution in original post

5 Replies
DanPatterson_Retired
MVP Emeritus

the only arcpy properties that can be read for geometric networks are...

http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/geometric-network-properties.htm

and the Tools access is listed here

http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/an-overview-of-the-geometri...

I see nothing specific to geometric networks for exporting unless it is buried in a similar object

MaherAssi
New Contributor

Thanks for your reply Dan.

I already checked these information but didn't find them useful to get the connectivity rules.

0 Kudos
XanderBakker
Esri Esteemed Contributor

What level of details do you want to extract? The connectivity from all featureclasses participating in the geometric network? In what format do you want to export the information?

0 Kudos
MaherAssi
New Contributor

Dear Xander

I want to know the connectivity rules for all feature classes participating in the geometric network, and I am intending to export them into an excel file.

0 Kudos
DanPatterson_Retired
MVP Emeritus

In my first link, the only properties that you can access are featureClassNames, networkType, orphanJunctionFeatureClassName plus those associated with Dataset properties.  'Rules' of whatever kind you are looking for aren't accessed through arcpy.