This should be simple, however I can't seem to find how you can get the alias name of a featureclass. I am going though the layers in the TOC, I think they are FeatureLayer type when you are looping, but no obvious way to find the alias.
Use FeatureClassDefinition.GetAliasName()
Is there something similar for rasters too?
Is there some function like SetAliasName()
@happygis, You can set/change the alias name using the SchemaBuilder Modify method from the Pro SDK 3. x.
SchemaBuilder schemaBuilder = new SchemaBuilder(geodatabase); FeatureClassDescription description = new FeatureClassDescription(featureClass.GetDefinition()); description.AliasName = "Your-FC-AliasName"; schemaBuilder.Modify(description); bool status = schemaBuilder.Build();
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.