We have a Custom Extension developed for ArcMap, which includes the Creation of a Custom Layer. The Code for the Layer is similar to what you see in this Answer to Custom Layer not drawing using ArcObjects?. This has been developed in ArcObjects & C#.
I'm now evaluating migrating the Extension to ArcGIS Pro, but can't find any documentation for a Custom Layer in ArcGIS Pro. The Only thing I find is an ArcGIS Idea for Custom Layer in ArcGIS Pro.
Can we create Custom Layers using the ArcGIS Pro SDK for .NET ?
Best Answer
This is an awful situation that must be fixed by ESRI. While they hide behind the philosophy that the ArcGIS Pro SDK is a DML (Data Manipulation Language) and shouldn't change any schema properties the raw truth is that most AddIns are there to produce output in the form of tables and featureclasses.
The only way to create a table is to: 1. Create the bare-bones table using the ArcToolbox tool. 2. Add each field individually using the ArcToolbox tool.
It takes ages to run (about 3 sec to add each field) and each field addition causes the whole map to redraw!
Trying to map the inputs to what the Toolbox tool accepts is a nightmare.
The code below works but I'm not proud of it.