It's great that I can trace a geometric network with python now, but that's all that I can do. The output is a 'Group Layer' which isn't usable in stand alone python.
Add an option or change the output in the TraceGeometricNetwork tool to select the traced features classes in the network (or just select them by default!). That way I can iterate through the polyline feature classes and do the obscure
print "Number of selected features:", str(len(desc.fidSet.split(";")))
to see if any of them were selected by the trace (By the way, y'all should add 'Selected' as a argument in the GetCount_management tool too).
That way I can do things like get the total length of the trace, total volume of the traced path, merge/dissolve/export the trace, etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.