|
POST
|
Hi Were you able to compile your project? I was able to compile your attached project. I was also able to see your search control on the dockpane in Pro. I have seen these type of errors show up in the Visual Studio Designer - There a few hits on Google search about these too. In fact, on Visual Studio 2019, your project did not show these errors. I think you can safely ignore them and still work with those controls. Thanks Uma
... View more
02-20-2020
10:17 AM
|
0
|
0
|
1546
|
|
POST
|
I tried with 2.4.3 also - I couldn't see the issue with the attached data. Also FYI - Pro version 2.4 onward, Pro SDK supports Visual Studio 2017 and 2019 only.
... View more
02-19-2020
01:18 PM
|
0
|
1
|
1340
|
|
POST
|
Hi Karen I am afraid the Attach button is a hidden feature I see it if I click the "Use Advanced editor" button at the top.
... View more
02-19-2020
12:34 PM
|
0
|
0
|
1340
|
|
POST
|
Hi Karen I am not seeing this issue - I am testing this on Pro version 2.4. Is there a small sample raster file you could share? I am creating a map and opening the Map pane in one button click like the code below. Is this similar to what you are doing? //Button's OnClick method
protected async override void OnClick()
{
await QueuedTask.Run(async () =>
{
var map = MapFactory.Instance.CreateMap("MyMap", basemap: Basemap.ProjectDefault);
await ProApp.Panes.CreateMapPaneAsync(map, MapViewingMode.Map);
});
}
... View more
02-19-2020
12:08 PM
|
0
|
5
|
1340
|
|
POST
|
Hi Currently it is not possible to parse and retrieve the Label Expression with the Pro public API.
... View more
02-19-2020
11:02 AM
|
0
|
1
|
884
|
|
POST
|
This is not possible with Pro. There is limited automation available with Python and arcpy.
... View more
02-14-2020
11:51 AM
|
0
|
1
|
543
|
|
POST
|
Thanks for the feedback. I will let you know when these controls are on the pipeline for future releases.
... View more
02-14-2020
10:28 AM
|
0
|
0
|
1872
|
|
POST
|
Hi, Here is a button OnClick method that opens the Attribute table for a layer: protected override void OnClick()
{
var lyrs = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>();
MapView.Active.SelectLayers(lyrs.ToList());
var openTableBtnCmd = FrameworkApplication.GetPlugInWrapper("esri_editing_table_openTablePaneButton") as ICommand;
if (openTableBtnCmd != null)
{
// Let ArcGIS Pro do the work for us
if (openTableBtnCmd.CanExecute(null))
{
openTableBtnCmd.Execute(null);
}
}
} Thanks Uma
... View more
02-14-2020
09:25 AM
|
3
|
2
|
5298
|
|
POST
|
Hi Geoff I am seeing the same issue. This is a bug. I have submitted an issue to the development team and will post when it gets addressed. Thanks for reporting this! Uma
... View more
02-13-2020
02:01 PM
|
0
|
3
|
922
|
|
POST
|
Hi There are multiple ways to display the contents of your table. You can use a WPF Datagrid control to display the table. Another option is to use the Pro SDK Table Control. Here is a sample that shows how to do that: TableControl Sample Thanks Uma
... View more
02-11-2020
03:12 PM
|
0
|
4
|
5298
|
|
POST
|
Hi 1. Currently there is no way to display the Layout Properties at the correct Tab using the API. 2. You can edit Layout Element properties using their "CIM" definition. For example, in the code snippet below, a Line Graphic element is created and its properties are set using the CIM. GraphicElement lineElm = LayoutElementFactory.Instance.CreateLineGraphicElement(layout, polylineTic, lineSym);
CIMElement cimElement = lineElm.GetDefinition(); //Get the element's CIM Definition.
cimElement.Name = "Set Line Name"; //Set's its name
cimElement.Anchor = Anchor.BottomLeftCorner;
//You can set many other properties here.
lineElm.SetDefinition(cimElement); //Reset the definition back. Thanks Uma
... View more
02-11-2020
10:35 AM
|
1
|
2
|
1872
|
|
POST
|
To use graphics as overlays, here is a snippet: Add overlay graphic with text
... View more
02-10-2020
12:41 PM
|
0
|
0
|
2409
|
|
POST
|
You can use the "Text" property on the CIMTextGraphic: var textGraphic = new CIMTextGraphic(); textGraphic.Text = "MyText";
... View more
02-10-2020
11:59 AM
|
0
|
0
|
2409
|
|
POST
|
Hi Bob, To label features of a layer, you have to use the SetLabelVisibility method. Check out the TextSymbols sample. Specifically in the ApplyLabelFeatureLayerAsync method, notice how we get the layer's TextSymbol and change it to the Symbol we want (in your case the Balloon callout). You can simply call the SetLabelVisibility method and pass in true to label the layer. private Task ApplyLabelFeatureLayerAsync()
{
return QueuedTask.Run(() =>
{
//Get the layer's definition
var lyrDefn = SelectedLayer.GetDefinition() as CIMFeatureLayer;
//Get the label classes - we need the first one
var listLabelClasses = lyrDefn.LabelClasses.ToList();
var theLabelClass = listLabelClasses.FirstOrDefault();
//Place all labels horizontally
theLabelClass.StandardLabelPlacementProperties.LineLabelPosition.Horizontal = true;
//Set the label classes' symbol to the custom text symbol
theLabelClass.TextSymbol.Symbol = SelectedTextStyle.Symbol;
lyrDefn.LabelClasses = listLabelClasses.ToArray(); //Set the labelClasses back
SelectedLayer.SetDefinition(lyrDefn);
//set the label's visiblity
if (IsLabelVisible)
(SelectedLayer as FeatureLayer).SetLabelVisibility(true);
});
} Thanks Uma
... View more
02-10-2020
09:39 AM
|
0
|
5
|
2409
|
| 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 |
Online
|
| Date Last Visited |
9 hours ago
|