Listing Featureclasses in a Geometric Network

567
1
07-01-2011 08:21 AM
BruceNielsen
Occasional Contributor III
I'm currently using ArcView 9.2 (no extensions), and trying to list the featureclasses of a geometric network stored in a file geodatabase.
gp.workspace = featuredataset
FCs = gp.listdatasets()
FC = FCs.next()
while FC:
    print FC
    FC = FCs.next()

Only returns the name of the geometric network. How can I get to the list of featureclasses in the same featuredataset?
Tags (2)
0 Kudos
1 Reply
BruceNielsen
Occasional Contributor III
<headslap> I was confusing featureclasses and featuredatasets (again).
gp.workspace = featuredataset
FCs = gp.listfeatureclasses()
FC = FCs.next()
while FC:
    print FC
    FC = FCs.next()

Works as it should. Sorry to waste your bandwidth.
0 Kudos