|
POST
|
System.Diagnostics.DiagnosticSource is part of the .NETCore app framework, so i am pretty sure if you install the .NET 7 runtime you have the desired assembly version.
... View more
03-30-2023
09:30 AM
|
0
|
4
|
2824
|
|
POST
|
I haven't used Microsoft.Extensions.Hosting, however, it looks like your app seems to look for .NET 7. ArcGIS Pro is built on .NET 6.
... View more
03-30-2023
08:28 AM
|
0
|
1
|
2827
|
|
POST
|
The errors that i encountered when running a python script (either from .Net out of process, or from a Windows command prompt) were caused by Plugin Datasource extensions that i had installed at one time. It appears that arcpy is now initializing Plugin datasource extensions (to support custom data imports) in 3.1 even if those Plugins are not used in the script. i was able to fix my problem by deleting any plugins with a ".esriPlugin" file extension in my Documents\ArcGIS\Addins folder. After i removed those plugin extensions my python scripts worked without any problems and without throwing any 'dll file not found' errors. The dev team is working on a fix for this specific issue.
... View more
03-23-2023
08:29 AM
|
2
|
2
|
3897
|
|
POST
|
The error message "The value type is incompatible" is referring to the data type of the database column and the datatype of the OutputList variable. Your code snippet doesn't show what types we are dealing with, but in general when you update column values in a database table (or feature class) you can only assign the appropriate matching datatype. Take for example this table: I have the DataTypes of Geometry, Double and Text. So when i update those column values i can only assign a geometry (here even the geometry type point, line, polygon has to match) value, double value or a string value to those columns. Judging by the name 'OutputList' you probably store some type of list of strings or numbers and there is no geodatabase column datatype that supports lists (or arrays). You could store a short list as a comma separated list of strings in a text field, but you have to watch out for character limits on text fields.
... View more
03-23-2023
06:46 AM
|
1
|
1
|
2032
|
|
POST
|
Can you provide the version of Pro you're using, a screenshot of the SQL Query that is not working, and sample of the rows that are displayed (use the Attribute table for that) even so they don't fulfill the query condition?
... View more
03-22-2023
02:14 PM
|
0
|
0
|
5826
|
|
POST
|
@Gerry_S In ArcGIS Desktop (ArcMap, ArcCatalog, etc.) you needed to install the SDK in order to be able to use the API, however, in ArcGIS Pro the API is part of the ArcGIS Pro installation. ArcGIS.Core is one of the core assemblies used by ArcGIS Pro. When you install the Pro SDK in Visual Studio you only get the Project / Item templates and some utilities to manage your Pro SDK add-ins & configuration projects. The Pro SDK doesn't install any part of the API since it's part of ArcGIS Pro (actually ArcGIS Pro is using this API as well). When running a python script, arcpy is also trying to use the ArcGIS Pro API (which ArcGIS.Core is part of) but can't find the assembly. This worked in 3.0 so i assume there is part of the environment that tells arcpy where to find the Pro assemblies changed in 3.1.
... View more
03-22-2023
07:36 AM
|
1
|
0
|
2523
|
|
POST
|
@Anonymous User i can probably help you with your add-in / dockpane issues. I am working with the ArcGIS Pro SDK team. I will probably need to see your code though ... you can send me a private message, or report your issues under 'ArcGIS Pro SDK Questions' ArcGIS Pro SDK Questions - Esri Community
... View more
03-22-2023
07:24 AM
|
2
|
0
|
5263
|
|
POST
|
I am experiencing the same problem .... in 3.0 i was able to run my python scripts without any errors, but after i upgraded to 3.1 and later I am getting only errors. I run my scripts from within a .NET Module add-in (by calling a process to invoke propy.bat) or simply from a command line. Neither works anymore. I attached my Python script (change the extension back to .py). It needs an input FileGeodatabase with a polygon feature class and a non-existing feature class for the output. The script is doing buffer operation. So this what i get when i run the script using 3.0 (I only show the command line here): "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\propy.bat" "C:\Users\wolf2125\AppData\Local\ESRI\ArcGISPro\AssemblyCache\{31d7f807-1dfe-44c3-9c8b-6ffc8263159e}\test1.py" "C:\Data\FeatureTest\FeatureTest.gdb\TestPolygons" "C:\Data\FeatureTest\FeatureTest.gdb\TestPolygons_Buffer"
>> Output from Python (the output buffer polygon was created):
Input: C:\Data\FeatureTest\FeatureTest.gdb\TestPolygons
Output: C:\Data\FeatureTest\FeatureTest.gdb\TestPolygons_Buffer
Hello - this message is from a TEST Python script
Done Next i uninstalled 3.0 and installed 3.1 and the same script can't be run. I get this error from the command line: "C:\Program Files\ArcGIS\Pro\bin\Python\Scripts\propy.bat" "C:\Users\wolf2125\AppData\Local\ESRI\ArcGISPro\AssemblyCache\{31d7f807-1dfe-44c3-9c8b-6ffc8263159e}\test1.py" "C:\Data\FeatureTest\FeatureTest.gdb\TestPolygons" "C:\Data\FeatureTest\FeatureTest.gdb\TestPolygons_Buffer"
Input: C:\Data\FeatureTest\FeatureTest.gdb\TestPolygons
Output: C:\Data\FeatureTest\FeatureTest.gdb\TestPolygons_Buffer
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'ArcGIS.Core, Version=13.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'. The system cannot find the file specified.
File name: 'ArcGIS.Core, Version=13.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86'
at ArcGIS.Core.Internal.PluginWorkspaceFactoryShim.FinalConstruct(PluginWorkspaceFactoryShim* )
at ATL.CComPolyObject<ArcGIS::Core::Internal::PluginWorkspaceFactoryShim>.FinalConstruct(CComPolyObject<ArcGIS::Core::Internal::PluginWorkspaceFactoryShim>* )
at ATL.CComPolyObject<ArcGIS::Core::Internal::PluginWorkspaceFactoryShim>.CreateInstance(IUnknown* pUnkOuter, CComPolyObject<ArcGIS::Core::Internal::PluginWorkspaceFactoryShim>** pp)
at ArcGIS.Core.Internal.PluginWorkspaceFactoryShim.CreateInstance(IAddInRecord* pAddinRecord, IUnknown* controllingUnknown, IUnknown** ppPluginWorkspaceFactory)
at PluginFactory.CreateObject(PluginFactory* , IAddInRecord* pAddinRecord, IUnknown* pUnkOuter, IUnknown** ppPluginWorkspaceFactory) I can't run test1.py from my add-in either - since it's executing the exact same script. It looks to me like arcpy is unable to find / load its underlying assemblies (ArcGIS.Core, Version=13.1.0.0). I added the ArcGIS Pro bin to the Path environment, but that didn't help.
... View more
03-21-2023
03:48 PM
|
1
|
2
|
5370
|
|
POST
|
Hi Thi, I attached a 2.9 sample that should build and run in 2.8. Remember that when you add data to the UI as a result of an Event (I.E. layer changed events) then very likely your code will run on a non-UI thread. Also anything within QueuedTask.Run is running on a non-UI thread.
... View more
03-20-2023
10:33 AM
|
0
|
0
|
1617
|
|
POST
|
Build and run this sample: arcgis-pro-sdk-community-samples/Framework at master · Esri/arcgis-pro-sdk-community-samples (github.com) Scroll down on the link above to get instructions on how to run the sample. This will give you the most complete list of Pro Images. Starting with 3.1 the syntax on how to use Pro Internal Images changed a bit (internally all images were converted into vector graphics), and you can find instructions on how to reference Pro internal images here: ProGuide Content and Image Resources · Esri/arcgis-pro-sdk Wiki (github.com)
... View more
03-20-2023
07:50 AM
|
2
|
0
|
5169
|
|
POST
|
Unfortunately, we are limted to the search functions in GitHub or Visual Studio. I mostly use the GitHub search function. Like google searches you can't really specify a term that's too common. Here for example i am looking for 'Edit Operation' and get this: If you are looking for UI features you can look at the images in Screenshots folders (either locally after downloading the sources, or on github scrolling down on the Readme.md). Needless to say, you can also open the community sample's base folder in Visual Studio and search for a term using Visual Studio's File search for the 'entire workspace'.
... View more
03-17-2023
03:01 PM
|
0
|
0
|
1006
|
|
POST
|
You are updating a list/combobox from a background thread, hence you have to take certain precautions. Like using: System.Windows.Data.BindingOperations.EnableCollectionSynchronization(_layers, _lock);
This enables your observable collection for updates on non GUI threads. Also once you define and 'lock' an observable collection you can't assign a new collection (like you did with your field names). I attached a sample that shows FeatureLayers and field names on a Dockpane.
... View more
03-17-2023
02:11 PM
|
0
|
0
|
1643
|
|
POST
|
Neither classes derived from Button (processing your OnClick) nor classes derived from MapTool (processing your Tool) are accepting parameters. If you need to configure any of these button or tool classes, i recommend using properties in your Module derived class (or settings if that's appropriate). Your module derived class is a singleton and easily accessible from any of your code. internal class Module1 : Module
{
private static Module1 _this = null;
...
internal static string MyToolSetting
{
get; set;
}
} To access this from your tool (within the same project): internal class MapTool1 : MapTool
{
private string myParameter;
public MapTool1()
{
IsSketchTool = true;
SketchType = SketchGeometryType.Rectangle;
SketchOutputMode = SketchOutputMode.Map;
}
protected override Task OnToolActivateAsync(bool active)
{
myParameter = Module1.MyToolSetting;
return base.OnToolActivateAsync(active);
}
...
}
... View more
03-17-2023
10:05 AM
|
0
|
0
|
2246
|
|
POST
|
Make sure your image has the 'Build Action' set to 'Resource': and declare the image in the config.daml as shown (make sure to replace the <your_DLL_Name> with the name of your add-in): <button id="TaxParcelPlenary_DisasterFlood" caption="Flood Disaster" className="DisasterFlood" keytip="B3"
loadOnClick="true"
largeImage="pack://application:,,,/<your_DLL_Name>;component/Images/DisasterFlood32.png">
<tooltip heading="Flood Disaster">
Adjust the Tax Assessment after a declared Flood Disaster<disabledText />
</tooltip>
</button>
... View more
03-01-2023
09:32 AM
|
0
|
0
|
936
|
|
POST
|
Given that @tempStephenRhea_NV5 was able to add 178 fields i would second his guess that some field definitions are not defined as required. To work around this, I would try to use DDL (SchemaBuilder) to add your fields. It's easier to declare your field definitions since you can define fields using the FieldDescription class. ProConcepts DDL · Esri/arcgis-pro-sdk Wiki (github.com) There is also a code snippet: ProSnippets Geodatabase · Esri/arcgis-pro-sdk Wiki (github.com) and you can look at this example: arcgis-pro-sdk-community-samples/Geodatabase/DDLAddField2FeatureClass at 6078006a3943364f2a7931b19d1eb03c8a99e1cf · Esri/arcgis-pro-sdk-community-samples (github.com)
... View more
02-21-2023
06:08 AM
|
0
|
1
|
1282
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-07-2025 07:27 AM | |
| 2 | 2 weeks ago | |
| 1 | 07-30-2025 12:03 PM | |
| 1 | 10-06-2025 01:19 PM | |
| 1 | 10-06-2025 10:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
Sunday
|