POST
|
Execution does not fail when I use "memory" as workspace. Executing a geoprocessing tool requires not only the tool name but also the toolbox name. Feature Class To Feature Class is in the Conversion toolbox. So, the correct syntax to use the tool will be: IGPResult result = await Geoprocessing.ExecuteToolAsync("FeatureClassToFeatureClass_conversion", parameters, environment, null, null, ExecuteToolFlags.AddToHistory); IGPResult result = await Geoprocessing.ExecuteToolAsync("conversion.FeatureClassToFeatureClass", parameters, environment, null, null, ExecuteToolFlags.AddToHistory); If you put the toolbox name after tool name then use an underscore and if using before the tool name then use a dot. Here is an example from Esri github.com site: https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Geoprocessing/ApplySymbology/ApplySymbButton.cs
... View more
08-18-2021
02:12 PM
|
0
|
1
|
790
|
IDEA
|
Hi SHMIIS, where can I find 'Assign Data By Location' tool?
... View more
07-23-2021
03:17 PM
|
0
|
0
|
2561
|
POST
|
Your case is very interesting. Spatial Join tool's Join Features parameter takes only one feature class or layer as input. But you have multiple join feature classes. You can give Jayanta Poddar's suggestion a try - it's a good suggestion. You wrote you couldn't find any suitable match option - which relationship (except for the given ones) you are looking for? Send an email to me at nahmed@esri.com
... View more
07-23-2021
10:33 AM
|
1
|
1
|
1170
|
POST
|
No - we cannot use python code in C# "as is" - this is just for an idea. If Python has the ability to read - I'm hopefull C# SDK might have a way. Let's wait for Wolf's response.
... View more
01-12-2021
12:08 PM
|
0
|
0
|
3018
|
POST
|
In Python (@Wolf - it would be great if you can translate the python syntax into C#). I'll also try. d = arcpy.Descrbibe("input_data") relation_class = d.relationshipClassNames # returns relationship class(es) the dataset participate in
... View more
01-12-2021
11:43 AM
|
0
|
2
|
3030
|
POST
|
Not 9.3 - but the current version of the software. For example, ArcGIS Pro 2.5. If you look into an older version then you won't see documentation for the newer tools.
... View more
10-02-2020
12:07 PM
|
0
|
1
|
2114
|
POST
|
Than Aung - could you please email me your python toolbox and the .Net solution as a zip file?
... View more
09-29-2020
09:31 AM
|
0
|
0
|
4398
|
POST
|
Do you get any return value when you just run the Python toolbox in ArcGIS Pro app? I don't see any - the pyt tool does not return any value from Pro App - thus .Net call also doesn't get any value. Let me work on this - will get back with a working answer.
... View more
09-28-2020
09:50 AM
|
0
|
5
|
4398
|
POST
|
In the execute method of the Python toolbox you are just using return statement (line# 66) which means you are returning void (or nothing). I think the return statement should be (WARNING: I think my below statement is wrong - will update the correction soon. 9/28/2020) return ouputLayerInfo In this call to an Async method, use an "await": var gpResult = await Geoprocessing.ExecuteToolAsync(toolboxPath, arguments); Give it a try and let us know how it goes
... View more
09-25-2020
08:40 AM
|
1
|
7
|
4398
|
POST
|
Geoprocessing.ExecuteToolAsync has several optional parameters - the full syntax is: var GPResult = Geoprocessing.ExecuteToolAsync(tool_path, parameters, envArray, null, null, GPExecuteToolFlags.None); Passing GPExecuteToolFlags.None as the last parameter will block adding output to the map.
... View more
08-21-2020
12:39 PM
|
1
|
0
|
669
|
POST
|
You can use Copy tool (in Data Management toolbox) to Copy the Geodatabase with domains to a new geodatabase: arcpy.management.Copy("gdb_with_domains", "gdb_with_no_domains") Or, use the Copy tool in dialog: Answer by Joe Borgione Mar 10, 2015 8:43 AM - is also very good.
... View more
08-05-2020
11:23 AM
|
2
|
0
|
2611
|
POST
|
I have communicated with our Geodatabase team - they are following this thread. As of now, there is no API yet. As of now, for Geoprocessing functionalities, we have "in_memory" and "memory" workspace - what it does is, the string is read as is but then internally interpret and convert it to a geodatabase which lives in memory.
... View more
07-29-2020
08:24 AM
|
2
|
0
|
7188
|
POST
|
See the help text, it requires a valid path to a file geodatabase folder that ends with .gdb extension:
... View more
07-28-2020
09:10 AM
|
1
|
0
|
7188
|
POST
|
Instead of the full path to GDB (such as: "C:\myfolder\mygdb.gdb") just use "in_memory" or just "memory". Here is an example: Syntax in Python: outfc = r"in_memory\\out_fc" Syntax in C# will be: var outfc = "in_memory\\out_fc" Alternatively, you can just use "memory\mydata". We will add a snippet and sample to Geoprocessing SDK section: GitHub - Esri/arcgis-pro-sdk: ArcGIS Pro SDK for Microsoft .NET is the new .NET SDK for the ArcGIS Pro Application. This is a new Pro format built and supported in ArcGIS Pro 2.x: Write geoprocessing output to memory—ArcGIS Pro | Documentation Note: Unlike the memory workspace, in_memory workspace does not support subtypes or domains.
... View more
07-27-2020
04:47 PM
|
2
|
1
|
7186
|
POST
|
Before you do anything, first make sure the Geoprocessing options are set properly from Project menu. From there, select Options > Geoprocessing and make sure to check mark 'Add Output datasets to an open ma' option - .Net code cannot override if the option is not set.
... View more
07-22-2020
12:34 PM
|
0
|
0
|
843
|
Title | Kudos | Posted |
---|---|---|
1 | 12-18-2019 03:56 PM | |
1 | 05-06-2020 01:18 PM | |
1 | 07-23-2021 10:33 AM | |
1 | 07-28-2020 09:10 AM | |
2 | 07-27-2020 04:47 PM |
Online Status |
Offline
|
Date Last Visited |
10-25-2021
03:13 PM
|