POST
|
Hi guys, I am unable to deploy my solution in VM. its not giving me any error but my dockpane doesn't display anything. It just comes with blank. In my development machine it all works fine only in VM where Arcgis pro was installed it is having this issues. I have copied my thrid party dlls into the folder C:\Program Files\ArcGIS\Pro\bin I have also set “Copy to local” to True. in VS. I am unable to find where the issue could be. I have also added logging functionality and its not even coming to my logging code and I am not sure what I am missing. Having dockpane as blank is something I am unable to debug. Can someone please help me on this??
... View more
10-15-2019
07:35 PM
|
0
|
3
|
4142
|
POST
|
Thanks Arun, I am keeping the app.config in project path and using below code to get the DB conn string and we can change the connection string whenever we need. string PrjPath = Project.Current.URI; System.IO.DirectoryInfo directoryInfo = System.IO.Directory.GetParent(PrjPath); string executingAssemblyFqPath = directoryInfo.FullName;
... View more
09-26-2019
09:18 AM
|
0
|
0
|
5202
|
POST
|
Hi, Are you able to change the settings in App.config after deploying. I was not able to change the DB connection string after deploying. It still takes the old connection but not new connection string. Any thoughts on this in using the App.config in arcgis pro add ins???
... View more
09-26-2019
08:14 AM
|
0
|
2
|
5202
|
POST
|
Thanks a lot!! I have ArcGIS Pro 2.3 installed on my machine. I have installed the 2.1 sdk for .Net in visual studio but it still taking the 2.3 version of dll's. How can I build a project with dll's referencing to 2.1?? Do I need to have arcgis pro 2.1 installed in my machine??
... View more
09-11-2019
07:45 AM
|
1
|
1
|
1829
|
POST
|
Does any one has any idea on how to download the previous of ArcGIS Pro SDK version in visual studio?? Now the latest version from Arcgis pro is 2.4 but my business users are still using 2.1. So I have to develop the add-ons to support 2.1 version. How can I download the previous version from nuget manager??
... View more
09-10-2019
02:45 PM
|
0
|
3
|
2139
|
POST
|
I would like to know if anyone has worked on exception logging and place all the logs in a text file. I created a small add-in and would like to Log the details on each function so that it will be easy for me to track the logs and fix it.
... View more
08-29-2019
11:41 AM
|
0
|
2
|
2026
|
POST
|
Thanks Rich, Did you try to create a new row into original table?? // include the attributes via a dictionary var atts = new Dictionary<string, object>(); atts.Add("SITE", _txtSiteNumber); atts.Add("SEQ", _txtSeqNumber); atts.Add("UTM_X", _dblUTMX); atts.Add("UTM_Y", _dblUTMY); atts.Add("LATITUDE", lat); atts.Add("LONGITUDE", longitude); atts.Add(shapeField, newMapPoint); // queue feature creation createOperation.Create(featLayer, atts); createOperation.Execute(); For me it fails when I try to call Create function. Regards, Naresh
... View more
07-22-2019
07:38 AM
|
0
|
1
|
884
|
POST
|
HI, That link only tell about below topics: Install ArcGIS Pro SDK for .NET<https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Installation-and-Upgrade#install-arcgis-pro-sdk-for-net> Upgrade ArcGIS Pro SDK for .NET<https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Installation-and-Upgrade#upgrade-arcgis-pro-sdk-for-net> Uninstall ArcGIS Pro SDK for .NET<https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Installation-and-Upgrade#uninstall-arcgis-pro-sdk-for-net> Distribute ArcGIS Pro SDK for .NET using a private gallery<https://github.com/Esri/arcgis-pro-sdk/wiki/ProGuide-Installation-and-Upgrade#distribute-arcgis-pro-sdk-for-net-using-a-private-gallery> It didn’t mention anything about if lower version Add-in’s will work for Future versions of ArcGIS Pro. Regards, Naresh
... View more
07-17-2019
09:56 AM
|
0
|
2
|
1502
|
POST
|
Hello Mody Buchbinder Is it because you are trying to deploy the Add-in built in 2.4 and adding it in 2.3 installed machines?? Add-ins and configurations are forwards compatible across all minor versions of ArcGIS Pro. In this case you are trying backward compatibility. My question is how come SDK automatically updated to 2.4??
... View more
07-17-2019
07:05 AM
|
0
|
0
|
1502
|
POST
|
HI, I would like to know if I develop an Add-in using Pro SDK .NET framework in ArcGIS Pro 2.3. Can I consume the same add-in for all latest versions as well like 2.4?? It should not be having any issues as per my knowledge. But do please let me know if any one else has seen the issues.
... View more
07-16-2019
11:45 AM
|
0
|
8
|
1618
|
POST
|
Hi, Below code works if my Featureclass is not joined with any other Table. If I add a join to other Table, then it throws an "DataSet does not have a valid definition" expection in featureClass.GetDefinition() line. I believe it is not able to get the FeatureClassdefinition when it is joined with other table. If it is not joined then it can get the FeatureClassDefinition and no problem in adding a new record. Does anyone else have this scenario?? Can you please let me know how to resolve this?? Below is the code used to insert a record into a FeatureClass. // Check for an active mapview if (MapView.Active == null) { ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("No MapView currently active. Exiting...", "Info"); return; } QueuedTask.Run(() => { // Get the layer selected in the Contents pane, and prompt if there is none: if (MapView.Active.GetSelectedLayers().Count == 0) { ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("No feature layer selected in Contents pane. Exiting...", "Info"); return; } // Check to see if there is a selected feature layer var featLayer = MapView.Active.GetSelectedLayers().First() as FeatureLayer; if (featLayer == null) { ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("A feature layer must be selected. Exiting...", "Info"); return; } try { //Create the edit operation var createOperation = new ArcGIS.Desktop.Editing.EditOperation(); createOperation.Name = "Generate points"; createOperation.SelectNewFeatures = false; // get the feature class associated with the layer var featureClass = featLayer.GetFeatureClass() as FeatureClass; // retrieve the class definition of the point feature class var classDefinition = featureClass.GetDefinition() as FeatureClassDefinition; // store the spatial reference as its own variable var spatialReference = classDefinition.GetSpatialReference(); // determine the shape field name - it may not be 'Shape' string shapeField = featLayer.GetFeatureClass().GetDefinition().GetShapeField(); var mpbuilder = new MapPointBuilder(); mpbuilder.X = Convert.ToDouble(_dblLong); mpbuilder.Y = Convert.ToDouble(_dblLat); //Create the point geometry ArcGIS.Core.Geometry.MapPoint newMapPoint = ArcGIS.Core.Geometry.MapPointBuilder.CreateMapPoint(mpbuilder.X, mpbuilder.Y, spatialReference.Wkid); // include the attributes via a dictionary var atts = new Dictionary<string, object>(); atts.Add("SITE", _txtSiteNumber); atts.Add("SEQ", _txtSeqNumber); atts.Add("LATITUDE", _dblLat); atts.Add("LONGITUDE", _dblLong); atts.Add(shapeField, newMapPoint); // queue feature creation createOperation.Create(featLayer, atts); createOperation.Execute(); } catch (Exception exc) { // Catch any exception found and display a message box. ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Exception caught while trying to create Feature: " + exc.Message); return; } });
... View more
07-11-2019
06:41 AM
|
0
|
4
|
1058
|
POST
|
HI, I would like to Create and Edit rows in Enterprise GeoDatabase. Using snippets in ArcGIS Pro SDK I can create a row and edit using EDIT OPERATION. I was wondering has any tried connecting to stored procedures in ArcGIS Pro SDK to insert or update rows in ArcGIS Pro SDK framework.
... View more
07-05-2019
10:43 AM
|
1
|
0
|
723
|
POST
|
Thanks!! Do you know if its the same issue even when we "Register the Database" Is it all just Read only option and not Write mode??
... View more
07-05-2019
10:17 AM
|
0
|
1
|
3488
|
POST
|
I am using ArcGIS Pro 2.3.0 Created a QueryLayer On selecting a particular attribute on Map and select Edit Ribbon and Click Modify and then select Move I am unable to move the point to a different Coordinate: Where as on a File Geodatabase, I can Modify and click Move and Change the Co-ordinates. Only on an Query Layer which was connected to enterprise GeoDatabase, I am unable to do it.
... View more
07-05-2019
09:44 AM
|
0
|
3
|
3488
|
Title | Kudos | Posted |
---|---|---|
1 | 07-04-2019 01:40 PM | |
1 | 09-11-2019 07:45 AM | |
1 | 07-05-2019 10:43 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|