|
POST
|
@EugeneStaten Hi, Check out the Layer files and Layer Package section of the ProConcepts: Map Authoring wiki. Using the LayerDocument class, you have the ability to access and modify the contents of a layer file. You can then alter the layer file properties prior to adding it to the map. Code snippets are provided to show how to accomplish this. Please reach out if you run into any issues or have questions. Thanks! Uma
... View more
yesterday
|
0
|
0
|
14
|
|
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
11-21-2025
10:57 AM
|
0
|
3
|
679
|
|
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
11-20-2025
10:32 AM
|
0
|
3
|
716
|
|
POST
|
Can you please share your code and the type of layer you are rendering?
... View more
11-19-2025
12:46 PM
|
0
|
1
|
743
|
|
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
11-04-2025
08:25 AM
|
1
|
1
|
475
|
|
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
|
953
|
|
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
|
510
|
|
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
|
382
|
|
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
|
424
|
|
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
|
645
|
|
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
|
1153
|
|
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
|
602
|
|
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
|
1085
|
|
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
|
1187
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-18-2025 03:09 PM | |
| 1 | 11-04-2025 08:25 AM | |
| 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
|