|
POST
|
If you dock the pane, change its width and close Pro, the next time you open the project it will appear exactly the way it was before you closed it. Use the dock, dockWith, autoHide attributes in the config.daml to set the initial docking state of your dockpane only. Thanks! Uma
... View more
06-19-2018
10:31 AM
|
0
|
0
|
2374
|
|
POST
|
Hi The ability to add text graphics to an overlay will be possible with ArcGIS Pro 2.2. ArcGIS Pro 2.2 will be available in a few weeks. Thanks Uma
... View more
06-13-2018
04:55 PM
|
0
|
0
|
492
|
|
POST
|
Hi, The SDK Documentation will soon include a few snippets that modify the renderer and create labeling expressions using Arcade. Here are a couple of snippets: Modify renderer using Arcade var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault(f => f.ShapeType == esriGeometryType.esriGeometryPolygon);
if (lyr == null) return;
QueuedTask.Run(() => {
// GetRenderer from Layer (assumes it is a unique value renderer)
var uvRenderer = lyr.GetRenderer() as CIMUniqueValueRenderer;
if (uvRenderer == null) return;
//layer has STATE_NAME field
//community sample Data\Admin\AdminSample.aprx
string expression = "if ($view.scale > 21000000) { return $feature.STATE_NAME } else { return 'All' }";
CIMExpressionInfo updatedExpressionInfo = new CIMExpressionInfo
{
Expression = expression,
Title = "Custom" // can be any string used for UI purpose.
};
//set the renderer's expression
uvRenderer.ValueExpressionInfo = updatedExpressionInfo;
//SetRenderer on Layer
lyr.SetRenderer(uvRenderer);
}); Modify label expression using Arcade var lyr = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault(f => f.ShapeType == esriGeometryType.esriGeometryPolygon);
if (lyr == null) return;
QueuedTask.Run(() => {
//Get the layer's definition
//community sample Data\Admin\AdminSample.aprx
var lyrDefn = lyr.GetDefinition() as CIMFeatureLayer;
if (lyrDefn == null) return;
//Get the label classes - we need the first one
var listLabelClasses = lyrDefn.LabelClasses.ToList();
var theLabelClass = listLabelClasses.FirstOrDefault();
//set the label class Expression to use the Arcade expression
theLabelClass.Expression = "return $feature.STATE_NAME + TextFormatting.NewLine + $feature.POP2000;";
//Set the label definition back to the layer.
lyr.SetDefinition(lyrDefn);
}); Thanks Uma
... View more
06-07-2018
02:42 PM
|
1
|
1
|
1291
|
|
POST
|
With the ArcGIS Pro 2.2 release (to be released soon), a new ListBox style will be available that can be used to create the text items with the separators in between. You will be able to use this to get the same UI design as the Catalog pane in Pro.
... View more
05-25-2018
04:14 PM
|
3
|
3
|
4663
|
|
POST
|
Hi Tony As a workaround you can determine when a new layout has been added by using the ProjectItemsChangedEvent like this: ProjectItemsChangedEvent.Subscribe((args) => {
if (args.ProjectItem is LayoutProjectItem && args.Action == System.Collections.Specialized.NotifyCollectionChangedAction.Add)
System.Diagnostics.Debug.WriteLine("Layout has been added");
});
... View more
05-25-2018
11:36 AM
|
2
|
1
|
1115
|
|
POST
|
The ability to add Text Graphics to the overlay will be available in the ArcGIS 2.2 release. Thanks Uma
... View more
05-21-2018
10:44 AM
|
1
|
0
|
1029
|
|
POST
|
Accessing the favorite style in a project is not supported. But you should be able to create your own personal style and add items to it. This personal style will be accessible using the SDK. Thanks Uma
... View more
05-17-2018
03:27 PM
|
0
|
0
|
531
|
|
POST
|
Hi Devon Messageboxes, windows ("Dialogs'), etc should be invoked on the UI thread, not within a QueuedTask. Generally speaking, the only UI you should use in conjunction with a QueuedTask is a progressor. Thanks Uma internal class ShowExporterWindow : Button
{
ExporterWindow window;
window = new ExporterWindow();
window.ShowDialog();
}
... View more
05-15-2018
02:19 PM
|
0
|
1
|
1141
|
|
POST
|
Hi Delores Here is the snippet that will get the Active Layout View: https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Layouts#reference-the-active-layout-view Thanks Uma
... View more
05-14-2018
09:51 AM
|
0
|
0
|
1529
|
|
POST
|
Hi Ted, Click the "Expand Toolbar" button and select "Syntax Highlighter" from the "More" drop down. Thanks Uma
... View more
05-08-2018
09:54 PM
|
0
|
0
|
3331
|
|
POST
|
Hi Ted, If possible, can you please share your xaml with me? Thanks Uma
... View more
05-07-2018
04:37 PM
|
0
|
1
|
3331
|
|
POST
|
Hi, Custom project settings can be saved within a Pro project and restored when you reopen the project. Here is a guide that can help you with how you can create your own custom project settings using the Pro SDK. ProGuide: Custom Project settings There is a sample that explains the complete workflow explained in this guide: BackStage_PropertyPage Thanks Uma
... View more
04-26-2018
11:08 AM
|
2
|
0
|
643
|
|
POST
|
Hi Sarthak, Please check out this sample, https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Editing/SketchToolDemo This sample demonstrates a 'cut' tool that allows an editor to sketch a line over a set of existing features, if a polygon is intersected by the sketch line, the polygon will be cut by the sketched line. Thanks Uma
... View more
04-12-2018
09:45 AM
|
0
|
2
|
1285
|
|
POST
|
Hi Devon In Visual Studio, you can set the Pro project to open on the command line in the Debug tab. (Accessed by right clicking the Project name on the Solution explorer and selecting Properties on the context menu). Like this. Thanks Uma
... View more
04-12-2018
09:02 AM
|
4
|
0
|
854
|
|
POST
|
Hi Brian When the ActiveMapViewChanged event fires, you can check the Event args to see if the "IncomingView" arg is null. Like this code snippet: ActiveMapViewChangedEvent.Subscribe(OnActiveMapViewChanged);
private async void OnActiveMapViewChanged
(ActiveMapViewChangedEventArgs activeMapViewChangedEventArgs)
{
if (activeMapViewChangedEventArgs.IncomingView == null) return;
....
}
... View more
04-12-2018
08:41 AM
|
1
|
0
|
1501
|
| 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 |
2 weeks ago
|