Usage
If the relationship class is stored in an enterprise geodatabase, this tool can only be successfully run as the data owner.
Syntax
arcpy.management.RemoveRuleFromRelationshipClass(in_rel_class, {origin_subtype}, {destination_subtype}, {remove_all})
Parameter | Explanation | Data Type |
in_rel_class | The relationship class with the rule to remove. | Relationship Class |
origin_subtype (Optional) | If the origin class has subtypes, the subtype that is associated with the relationship class rule to be deleted. | String |
destination_subtype (Optional) | If the destination class has subtypes, the subtype that is associated with the relationship class rule to be deleted. | String |
remove_all (Optional) | Specifies the relationship rules to be removed from the relationship class.
| Boolean |
Derived Output
Name | Explanation | Data Type |
out_rel_class | The updated input relationship class with the relationship class rule removed. | Relationship Class |
Code sample
Remove a relationship rule between the Residential subtype and the House subtype from the ParcelsToBuildings relationship class using the RemoveRuleFromRelationshipClass tool.
import arcpy
arcpy.RemoveRuleFromRelationshipClass_management(
"C:\\MyProject\\sdeConn.sde\\progdb.user1.ParcelsToBuildings", "Residential",
"House")
Environments
This tool does not use any geoprocessing environments.
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes