Create AttributeRules programmatically

778
2
Jump to solution
04-06-2020 02:37 AM
SreenivasaRaoPigili
Occasional Contributor

Hi All,

    I want to create attribute rules through programmetically.

For this, Read the filegeodatabase and checked whether AttributeRule supported or not.

               Created AttributeRuleManager

But, here we don't have option/method to create attribute rules.

ProConcepts Geodatabase · Esri/arcgis-pro-sdk Wiki · GitHub  

Can you please help me here. Thanks in advance.

Regards,

Sreeni.

0 Kudos
1 Solution

Accepted Solutions
RichRuh
Esri Regular Contributor

Hi Sreeni,

The geodatabase API doesn't allow schema changes (DDL).  

To programmatically add attribute rules, you will have to either

  • Write a Python script
  • Execute geoprocessing tools using the geoprocessing API

Here is an overview of the attribute rules toolset.

I hope this helps,

--Rich

View solution in original post

2 Replies
RichRuh
Esri Regular Contributor

Hi Sreeni,

The geodatabase API doesn't allow schema changes (DDL).  

To programmatically add attribute rules, you will have to either

  • Write a Python script
  • Execute geoprocessing tools using the geoprocessing API

Here is an overview of the attribute rules toolset.

I hope this helps,

--Rich

SreenivasaRaoPigili
Occasional Contributor

Thank you Rich for your response. 

0 Kudos