data-assistant
data-assistant copied to clipboard
Rework ‘New File’ in C# rather than as a GP tool
@SteveGrise what the reasoning for this enhancement request?
The area that has created the most confusion and bugs is the Create New File tool. Since it is implemented as a GP tool, the script only sees parameters that are passed to it and there is a lot of the ArcGIS Pro context missing.
One issue is that when there are 2 layers with the same name in a map it does not appear to be possible to figure out which layer was selected in arcpy. In the GP UI you will see these values as layer:1 and layer:2, but the tool just gets a parameter 'layer'.
Another issue is dataSource properties and some of the layer details is limited in arcpy, and how this works in arcpy has changed between versions.
Initially it was implemented as a GP tool so that developers/users could call the GP tool and create their own files. In practice it has created a lot of problems with usability and support, so the idea here is to rework the tool using the .NET API and the context information that is available for an addin tool vs. GP tool.
On Tue, Nov 8, 2016 at 7:04 PM, Jess Neuner [email protected] wrote:
@SteveGrise https://github.com/SteveGrise what the reasoning for this enhancement request?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Esri/data-assistant/issues/62#issuecomment-259299030, or mute the thread https://github.com/notifications/unsubscribe-auth/AEh3BIgtbJlFQ30cPQu9quZ8zyPZ67bUks5q8Q4agaJpZM4J7FjS .