POST
|
Hi, My guess is that the button class name, namespace has changed - causing a mismatch to what is declared in the config.daml of the add-in. Pro is not able to find the code behind for the button. Can you please try some of the solutions documented here: Namespace mismatch causes controls to not work or disappear Thanks Uma
... View more
Thursday
|
0
|
1
|
91
|
POST
|
ArcGIS Pro SDK wiki and the Samples repos provide some help with this: 1. Here is a code snippet that gets the clicked point in a map: Create a tool to the return coordinates of the point clicked in the map 2. MapTool Overlay Control sample: This sample provides a map tool that when you left click in the view will show the map coordinates of the click location in the top left corner of the view. Thanks Uma
... View more
Monday
|
0
|
1
|
65
|
POST
|
Hi Kirk I see the issue you are experiencing. Adding the queryFields array causes the exception. The workflow is successful if I remove the queryFields array (the SQL query is still successfully executed). The table gets successfully added to the map. I couldn't see any impact in the table added to the map. Please remove the queryFields array in your JSON. In the meantime, I will follow-up and see why queryFields inclusion is causing the crash. Thanks for reporting this! Uma
... View more
2 weeks ago
|
1
|
0
|
66
|
POST
|
Hi, How are you using the JSON strings to create the new layer? It is best to use the LayerDocument to accomplish this . LayerDocument gives you the ability to work with an "in-memory" representation of the layer. You can configure it (data connection, SQL query, renderers, etc) and then add it to the map. You can use an existing LayerX file to create a layer document object, and then access its CIM Definition to configure it. QueuedTask.Run( () => {
//Creates an in memory copy of the existing lyrx file
ArcGIS.Desktop.Mapping.LayerDocument lyrDoc = new ArcGIS.Desktop.Mapping.LayerDocument(@"C:\pathtoLayerXFile\layer.lyrx");
var cimLayerDoc = lyrDoc.GetCIMLayerDocument();
//Configure any aspects of the layer you want here. Query definitions, etc.
cimLayerDoc.LayerDefinitions[0].Name = "MyNewLayer";
//Create the layer in the active map using the layer document.
var layerParams = new LayerCreationParams(cimLayerDoc);
LayerFactory.Instance.CreateLayer<FeatureLayer>(layerParams, MapView.Active.Map,
LayerPosition.AddToTop);
}); Here is a ProSnippet that also addresses this: Create layer from a lyrx file
... View more
2 weeks ago
|
0
|
1
|
73
|
POST
|
Hi, To delete the New Project and Open Project tabs, these DAML line will do the trick: Backstage tab: Delete Pro's tabs and insert your own tab Thanks Uma
... View more
2 weeks ago
|
2
|
1
|
100
|
POST
|
Hi, I can confirm that the ability to create a Layer Document from a Lyrx file saved on Portal has been added to 2.8. 2.8 is currently under development. ArcPro 2.8 will be released later this year. Thanks! Uma
... View more
4 weeks ago
|
2
|
0
|
77
|
POST
|
Hi, Here are some snippets relating to Annotations: ProSnippets: Annotation. There is also a Concept doc available. Thanks Uma
... View more
01-13-2021
06:29 AM
|
1
|
0
|
150
|
POST
|
Hi Alex, Can you make a small sample add-in project with just this button and send it to me? An attachment posted here will work. I can take a look and see if I can help. Thanks Uma
... View more
11-05-2020
04:44 PM
|
0
|
0
|
221
|
POST
|
Hi Alex, Can you try using the AddMustNotBeTypeId method to pass in the typeIDs to not display? BrowseProjectFilter browseFilter = BrowseProjectFilter.GetFilter("esri_browseDialogFilters_shapefiles"); browseFilter.AddCanBeTypeId("shapefile_general"); browseFilter.AddCanBeTypeId("shapefile_line"); browseFilter.AddMustNotBeTypeId("shapefile_point"); //Add other typeIDs of shape files to not show. Also, this is how my dialog looks (below). I have a file GDB in this location. I don't see it nor am I able to browse into it. So not sure what is happening there.
... View more
11-05-2020
02:50 PM
|
0
|
2
|
221
|
POST
|
Hi, I added the "shapefile_general" typeID to get this to work. BrowseProjectFilter browseFilter = BrowseProjectFilter . GetFilter ( "esri_browseDialogFilters_shapefiles" ) ; browseFilter . AddCanBeTypeId ( "shapefile_general" ) ; browseFilter . AddCanBeTypeId ( "shapefile_line" ) ; OpenItemDialog browseDialog = new OpenItemDialog { . . . . Thanks Uma
... View more
11-04-2020
01:14 PM
|
0
|
4
|
221
|
Online Status |
Offline
|
Date Last Visited |
Thursday
|