Create feature class with "objectid" lowercase, Python?

1139
6
Jump to solution
04-17-2017 11:01 PM
MarkMindlin
Occasional Contributor III

Hi,

We have an old code that works with a feature class with field "objectid" lowercase.

I just wondering how can one create a feature class with lowercase "objectid"?

It is possible with Python? or C#?

Any help will be greatly appreciated.

0 Kudos
1 Solution

Accepted Solutions
MarkMindlin
Occasional Contributor III

We did it with

Export->XML Workspace Document

Manually change to lowercase in the XML

Import ->XML Workspace Document

Load

View solution in original post

0 Kudos
6 Replies
MarkMindlin
Occasional Contributor III

Can we use an XML schema for that? How?

0 Kudos
DanPatterson_Retired
MVP Emeritus

why not modify the code to convert the case to lower when the objected is needed.  If you attempt to make it useable in the other program, it won't be useable in Arc*.  Alternately, export to a format that both programs can agree upon

MarkMindlin
Occasional Contributor III

Thank you, Dan.

I see what you mean. I would definitely change the code. But..

The code is unreachable for me to change. 

0 Kudos
MarkMindlin
Occasional Contributor III

If we have old "rid" field of type "ObjectID"

could we AlterField to "objectid"?

0 Kudos
MarkMindlin
Occasional Contributor III

It actually works.

I am not sure if the type of the field could be set to "ObjectID".

0 Kudos
MarkMindlin
Occasional Contributor III

We did it with

Export->XML Workspace Document

Manually change to lowercase in the XML

Import ->XML Workspace Document

Load

0 Kudos