Hello,Is there a function like RemoveDomainFromField but for subtypes ? Or a function that allows us to clear the field of a subtype ? Thank you
https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/remove-domain-from-field.htm
arcpy.management.RemoveDomainFromField(in_table, field_name, {subtype_code})
The input table containing the attribute domain that will be removed.
The field that will no longer be associated with an attribute domain.
The subtype code(s) that will no longer be associated with an attribute domain.
Example:
arcpy.management.RemoveDomainFromField( in_table=r"xyz.gdb\UtilityNetwork\ElectricDevice", field_name="ASSETTYPE", subtype_code="'50: Armatuur'" )
any suggestions ?
Let's say that in the exemple below, In Utility Access Type, I would like to remove the link to Domain.I want to empty the the default value and the domain for AcessType in Utility. I know that I can do it directly on this table, but is there a way of doing it using a pyhton script ?Thanks
Do you mean?
Remove Subtype (Data Management)—ArcGIS Pro | Documentation
or are you looking for the new SUBTYPE@ functionality in cursors?
UpdateCursor—ArcGIS Pro | Documentation
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.