|
POST
|
@MichaelTodd I used your code on a mock up data set with "status" fields. It seems to work for me. I can't see anything wrong with the code. We will have to debug with your data to see what is actually happening.
... View more
2 weeks ago
|
0
|
3
|
267
|
|
POST
|
Hi @MichaelTodd The CanCreateRenderer method checks if the renderer being applied to the layer is the appropriate choice - Certain renderers are only appropriate for certain layer types or for layers of a certain geometry type. For example a Dot Density Renderer can only be applied to a polygon layer, a Heat Map Renderer can only be applied to a point layer. The method does not check if all the renderer values being applied are correct - such as are the correct fields being used, etc.
... View more
2 weeks ago
|
0
|
3
|
304
|
|
POST
|
Can you please share your code and the type of layer you are rendering?
... View more
2 weeks ago
|
0
|
1
|
331
|
|
POST
|
Hi @mahj One solution can be to: Set the Autoload attribute of the addin to be true. You set this is in your addins's DAML. This allows the Module to initialize when Pro starts up. In your Module Initialization callback, before you return false, get the Dockpane and set its IsVisible property to false. protected override bool Initialize()
{
//TODO: Be sure to add your business logic conditions for returning false, etc.
DockPane pane = FrameworkApplication.DockPaneManager.Find("ProAppModule3_Dockpane1");
if (pane != null)
pane.IsVisible = false;
return false;
}
... View more
a month ago
|
1
|
1
|
265
|
|
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
09-23-2025
09:31 AM
|
1
|
0
|
496
|
|
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
09-22-2025
03:02 PM
|
0
|
1
|
326
|
|
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
09-18-2025
03:09 PM
|
1
|
0
|
310
|
|
POST
|
What is the BuildAction and Copy To Output directory setting used for this file in the Visual Studio solution explorer?
... View more
09-18-2025
02:18 PM
|
0
|
0
|
343
|
|
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
09-18-2025
01:46 PM
|
0
|
1
|
461
|
|
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
|
1029
|
|
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
|
482
|
|
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
|
829
|
|
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
|
931
|
|
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
|
1261
|
|
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
|
1297
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-18-2025 03:09 PM | |
| 1 | a month ago | |
| 1 | 09-23-2025 09:31 AM | |
| 1 | 11-20-2024 10:50 AM | |
| 1 | 04-28-2025 03:06 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|