I used the rename tool to rename a set of layers. However, when I ran it, it renamed them in the catalog tree but not in the Layer Properties or when added to a map. See screen shots below. Any help would be appreciated.
oh... now the model appears... sigh.... I don't suppose you can put in the name you want or pull them from a list... of write a script to do that step.
I will defer to those that use models... and share it with https://community.esri.com/groups/model-builder?sr=search&searchId=25562dca-4508-4180-8c5c-1a4ac33ae0d7&searchIndex=0 and https://community.esri.com/community/mapping-and-charting?sr=search&searchId=61669a0e-5eb7-4bd5-9807-8548862f7e7f&searchIndex=3 and https://community.esri.com/community/developers/gis-developers/python?sr=search&searchId=5313a483-a6e6-4d97-8a5b-71fb7ab379f6&searchIndex=0 to see if anyone has done anything similar
I am using all of these tools in a model. Please see the screenshot below.
This is one line of the model which 1) iterates through a gdb does a test to see if a feature class has a specific name, 2) if it does, it creates a feature layer, 3) saves it to a layer file and 4) gives the layer a specific symbology. I am carrying the feature class name through the process using inline variables, but when I try to use an inline variable within the save to layer file, I get an error "Item not found in this collection". If I leave it blank, it will attach "Save_to_Layer_File".
If doing it with the tool manually, just delete the offending addendum. If using the tool in a script, you have control on the output filename. many tools in Arctoolbox append extra bits at the end of a filename... probably so you know what they are, or perhaps to prevent overwriting existing data (as in the case of the copy tool)
Thank you Dan. Renaming the original dataset will work, however, when I go to save it as a layer file, ArcGIS attaches "_Save_to_Layer_File" at the end of each feature class, hence the need for the renaming process on the layers. Is there any way to stop it from attaching this to each feature class name?
When this doesn't work http://pro.arcgis.com/en/pro-app/help/projects/rename-project-items.htm
try this http://pro.arcgis.com/en/pro-app/tool-reference/data-management/rename.htm
but that says it won't rename layers since layers are a reference to a dataset
which is somewhat circular, but my guess would be to rename the dataset first, then make the layer... it would definitely provide less confusion (the links are for pro, but they are the same for arcmap
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.