Hello,
I need to create a python script that would rename all the feature classes within multiple featuredatasets in a gdb (the gdb is in ArcSDE if that makes any difference). The feature classes are in a set format and I need to change the prefix and part of the suffix.
For example:
from "road_1234567ns" to "RD_1234567_NS12_13"
where 1234567 is the string that I need to keep (and is unique to each feature class) and prefix of "Road" is a constant that I need to replace with "RD_". Suffix is constant as well, "ns" replaced with "_NS12_13"
The renamed classes will be separated by an underscore
I am just starting out with python and eager to learn more, if anyone has any helpful insights, that would be greatly appreciated. I am using ArcGIS 10.1
Thank you!
I need to create a python script that would rename all the feature classes within multiple featuredatasets in a gdb (the gdb is in ArcSDE if that makes any difference). The feature classes are in a set format and I need to change the prefix and part of the suffix.
For example:
from "road_1234567ns" to "RD_1234567_NS12_13"
where 1234567 is the string that I need to keep (and is unique to each feature class) and prefix of "Road" is a constant that I need to replace with "RD_". Suffix is constant as well, "ns" replaced with "_NS12_13"
The renamed classes will be separated by an underscore
I am just starting out with python and eager to learn more, if anyone has any helpful insights, that would be greatly appreciated. I am using ArcGIS 10.1
Thank you!