POST
|
This worked for me, but I noticed that while AddField() happily accepts a field of type STRING, AddFields() will not and you must request a field of type TEXT or one of the other allowed types.
... View more
10-14-2020
01:05 AM
|
0
|
0
|
63
|
POST
|
Hi Charles, Thanks for the confirmation. The document link you sent https://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic14926.html states it clearly, but I was using this link which is identical except it doesn't mention that limitation. https://pro.arcgis.com/en/pro-app/sdk/api-reference/index.html#topic16203.html I am not sure what the difference is. I seem to have found an index page?
... View more
09-30-2020
04:35 PM
|
0
|
0
|
28
|
POST
|
Using the ArcGIS Pro SDK, I can construct a 3d symbol from a model file, such as DAE or STL using ConstructMarkerFromFile() CIMMarker cimMarker = await QueuedTask.Run(() => SymbolFactory.Instance.ConstructMarkerFromFile(filepath) ); I want to achieve the same result except using a file that has been first read into a MemoryStream, using ConstructMarkerFromStream(Stream stream). However, I get an exception "parameter is not valid". This suggests that ConstructMarkerFromStream is expecting a PNG image in the stream, not an XML 3D model. In the only usage example I can find, an ImageFormat is being specifically identified as PNG to the stream. Image newImage = Image.FromFile(@"C:\\downloads\\mymodel.dae"); var stream = new System.IO.MemoryStream(); newImage.Save(stream, ImageFormat.Png); stream.Position = 0; CIMMarker markerFromStream = SymbolFactory.Instance.ConstructMarkerFromStream(stream); How can I get ConstructMarkerFromStream() to understand the stream is a DAE object and not an image? Or is there another way to import DAE from a stream?
... View more
09-30-2020
02:25 AM
|
0
|
2
|
78
|
POST
|
I have an ArcGisPro Add-in using the SDK. As per the style guide, the UI controls use ESRI colours, brushes and ProWindow instead of System.Window. The Add-in is a DLL which is loaded into ArcGIS Pro. I also have a Test Harness which is plain WPF Application that also loads the DLL and performs tests on it. This avoids the slow startup for ArcGis on my machine ( Can this be avoided by reloading the add-in?). It can test the UI without interacting with ESRI components likes Maps, Projects etc. If I use ESRI resources in the add in, then the WPF Test Application can't see them and I get a compile error. Error XDG0008 The name "DesignOnlyResourceDictionary" does not exist in the namespace "clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions". My questions is how can the WPF App load the ArcGIS.Desktop.Extensions?
... View more
09-11-2020
01:04 AM
|
0
|
0
|
86
|
POST
|
I had a similar need to convert single points between MGRS and lat long I found this package does the trick: mgrs · PyPI. It converts single points between MGRS and UTM or Lat Long. I had to pip install mgrs, since the conda package manager only wants to support 'optimized' packages. When I installed the conda package from https://anaconda.org/conda-forge/mgrs, using conda on the command line, the package wanted to make a lot of changes to the default core python environment shipped with ArcGIS Pro 2.5. After installing the pip package to a cloned environment, I needed to reactivate the default environment and then switch back to the cloned environment before the package was recognized.
... View more
04-06-2020
11:10 PM
|
0
|
0
|
71
|
POST
|
If VS Code has the python module installed and the python interpreter is the same as the one in your ArcGIS environent then it should work. Here are some more details that may be useful. installation - Setting up Python/ArcPy with ArcGIS Pro and Visual Studio? - Geographic Information Systems Stack Exchang…
... View more
03-29-2020
04:14 PM
|
0
|
0
|
232
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|