POST
|
@AbhijeetNandeshwar1 I am not aware of a way to accomplish this with the API. I recommend posting this request in the Pro ideas site for the API support.
... View more
2 weeks ago
|
1
|
0
|
236
|
POST
|
I am not able to repro this one. My code looks like this: Map map = MapView.Active.Map;
Geodatabase geodatabase = new Geodatabase(new DatabaseConnectionFile(new Uri(@"C:\Users\uma\Path\Oracle-gdb.sde")));
CIMSqlQueryDataConnection sqldc = new CIMSqlQueryDataConnection()
{
WorkspaceConnectionString = geodatabase.GetConnectionString(),
GeometryType = esriGeometryType.esriGeometryPoint,
OIDFields = "OBJECTID,NAME,NUMBER_",
Srid = "25832",
SqlQuery = "select * from MAP.TestPoints",
Dataset = "MAP.%pointsLayer"
};
FeatureLayerCreationParams featureLayerParams = new FeatureLayerCreationParams(sqldc)
{
IsVisible = true,
Name = "pointsLayerSDK"
};
FeatureLayer featureLayer = LayerFactory.Instance.CreateLayer<FeatureLayer>(featureLayerParams, map) as FeatureLayer;
... View more
2 weeks ago
|
0
|
1
|
191
|
POST
|
You can use the CaptureThumnail method on the map view and get a BitmapSource. This can be passed to the System clipboard. Here is a small snippet. protected override async void OnClick()
{
var mapView = MapView.Active;
if (mapView == null)
{
ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("No active map view");
return;
}
await QueuedTask.Run(() =>
{
//width of the mapview extent
MapPoint ptXMaxYMin = MapPointBuilderEx.CreateMapPoint(mapView.Extent.XMax, mapView.Extent.YMin, mapView.Map.SpatialReference);
MapPoint ptXMinYMin = MapPointBuilderEx.CreateMapPoint(mapView.Extent.XMin, mapView.Extent.YMin, mapView.Map.SpatialReference);
var screenPtXMaxYMin = mapView.MapToScreen(ptXMaxYMin);
var screenPtXMinYMin = mapView.MapToScreen(ptXMinYMin);
var width = screenPtXMaxYMin.X - screenPtXMinYMin.X;
//Height of the mapview extent
MapPoint ptXMinYMax = MapPointBuilderEx.CreateMapPoint(mapView.Extent.XMin, mapView.Extent.YMax, mapView.Map.SpatialReference);
var screenPtXMinYMax = mapView.MapToScreen(ptXMinYMax);
var height = screenPtXMinYMin.Y - screenPtXMinYMax.Y;
var thumbnail = mapView.CaptureThumbnail((int)width, (int)height);
CopyBitmapSourceToClipboard(thumbnail);
});
}
public static void CopyBitmapSourceToClipboard(BitmapSource image)
{
if (image == null)
{
throw new ArgumentNullException(nameof(image), "BitmapSource cannot be null.");
}
try
{
Clipboard.SetImage(image);
}
catch (Exception ex)
{
// Handle potential exceptions, such as COMException if clipboard is in use
Console.WriteLine($"Error copying image to clipboard: {ex.Message}");
}
}
... View more
3 weeks ago
|
0
|
0
|
222
|
POST
|
What is the BuildAction and Copy To Output directory setting used for this file in the Visual Studio solution explorer?
... View more
3 weeks ago
|
0
|
0
|
245
|
POST
|
For the new layer, if you access the layer properties, what setting do you see under Elevation? Perhaps change this setting to see if your points are visible.
... View more
3 weeks ago
|
0
|
1
|
326
|
POST
|
Hi @ljlopez In 3.3, are you using the ArcGIS.Desktop.Framework.Controls.InfoButton? Can you please give me a little more of the xaml code snippet as to how you have sited this control in your dockpane? Thanks!
... View more
08-19-2025
02:47 PM
|
0
|
2
|
875
|
POST
|
Hi @MK13 Check out this snippet: Querying a feature layer with a spatial filter Please let me know if you have any questions about this - Uma
... View more
07-29-2025
08:58 AM
|
0
|
1
|
357
|
POST
|
ArcGIS Pro Configuration extensibility pattern can be used to modify the QAT. More info here: Cofigurations: OnCreateQuickAccessToolbar
... View more
05-12-2025
09:14 AM
|
0
|
0
|
673
|
POST
|
Hi @Min The "Project" button is a special button and cannot be customized. To change the application title, please use a "Managed Configuration". ProConcepts: Configuration Configuration Samples.
... View more
04-28-2025
03:06 PM
|
1
|
0
|
775
|
POST
|
Hi @JoePolaski You have Pro 3.2 on the machine, correct? Based on the version of RegisterAddIn.exe that you shared above, it is at version 3.3. On your machine, do you have a C:\ProgramData\EsriProCommon folder? It should have the RegisterAddIn.exe and it should be at 13.2.0.XXXX. So let's confirm that first. When you are targeting ArcGIS Pro 3.2, your solution should use the exe from this location. (Which is the next step to fix)
... View more
03-18-2025
11:38 AM
|
0
|
0
|
1036
|
POST
|
Two quick checks: You mentioned that RegisterAddIn.exe is in your C:\Program Files\ArcGIS\Pro\bin. 1. Can you please check its version? Right click on the exe and click Details tab to get the version. 2. Next, your esriAddInX file for your solution should be in your solution's Debug folder. When you double click it, what happens? I think for some reason your RegisterAddIn.exe is not matching the version of ArcGIS Pro on your machine. So that is what I am trying to check.
... View more
03-14-2025
06:25 AM
|
0
|
1
|
1072
|
POST
|
If you don't already have this option turned on, can you please turn on the Visual Studio verbosity option to detailed? And then, if you can compile your project, please check and see in the output exactly where RegisterAddIn.exe is being invoked from. As example, I see this in my output window when building addins: Task "Message"
ArcGISFolder Name: C:\Program Files\ArcGIS\Pro\bin...
Done executing task "Message".
Task "Message" skipped, due to false condition; (!Exists('$(ArcGISFolder)')) was evaluated as (!Exists('C:\Program Files\ArcGIS\Pro\bin')).
Task "Message"
Execute RegisterAddIn.exe "C:\PathTo.esriAddinX" /s...
Done executing task "Message".
Task "Exec"
RegisterAddIn.exe "C:\PathTo.esriAddinX" /s
... View more
03-11-2025
11:03 AM
|
0
|
3
|
1142
|
POST
|
You have Pro 3.2 installed (downgraded from 3.3). When you build addins, your visual studio project references the 3.1 Esri.ArcGISPro.Extensions30 Nuget package. Is this correct? Can you please check the following: * Where is RegisterAddin.exe on your machine? Is it in the install-location\ bin folder or C:\ProgramData?
... View more
03-11-2025
10:00 AM
|
0
|
1
|
1155
|
POST
|
By any chance, could your layers be set to be "un selectable"? It is a setting that you can see in the table of contents. Like the screenshot:
... View more
03-11-2025
08:51 AM
|
1
|
0
|
420
|
POST
|
Try to link the MapFrame's camera to the active map view's camera - Something like this: Camera camera = MapView.Active.Camera; newMapFrame.SetCamera(camera);
... View more
03-05-2025
11:52 AM
|
2
|
0
|
559
|
Title | Kudos | Posted |
---|---|---|
1 | 2 weeks ago | |
1 | 11-20-2024 10:50 AM | |
1 | 04-28-2025 03:06 PM | |
1 | 10-27-2020 07:03 AM | |
1 | 02-14-2025 11:20 AM |
Online Status |
Online
|
Date Last Visited |
7 hours ago
|