jxirgo

AddRuleToTopology_management error

Discussion created by jxirgo on Apr 28, 2013
Latest reply on Jun 9, 2017 by mahunter_USGS
AddRuleToTopology_management do not recognize a feature class, previously recognized and listed through arcpy.ListFeatureClasses() and checked by arcpy.CheckGeometry_manegement.

It is possible to add a new topology rule manually (arctoolbox > data management tools > topology > Addrule to topology) but not with Arcpy.

>>>>>>>>>>>>>>
arcpy.CreateTopology_management(espaiFGD,"CS_l","#") >> OK


arcpy.AddFeatureClassToTopology_management(espaiFGD+"/CS_l",espaiFGD+"/CS","1","1")  >> OK


fcLlista = arcpy.ListFeatureClasses()

for fc in fcLlista:
    print fc

arcpy.CheckGeometry_management(espaiFGD+"/CS,path+"/CS_CheckGeometry") >> OK

arcpy.AddRuleToTopology_management(Entrada1,"Must Not Overlap (Line)",espaiFGD+"/CS,"#","#","#")  >> Wrong

Error 000840: The value is not a  Feature Layer

Outcomes