|
POST
|
Hi Brian Try running Pro from the command line using the EnableDiagnostics flag. A log file will get created in your user’s Documents folder under an ArcGIS\Diagnostics sub-folder. This log file could provide some hints as to to why the add-in is not loading. There is also another command line that will allow you to view the DAML items loaded by Pro. You can check the DAML log generated to see if your Property page is being loaded by Pro at startup. View the DAML elements loaded at startup Thanks Uma
... View more
06-29-2018
11:26 AM
|
0
|
2
|
1308
|
|
POST
|
Hi Evan, You can set the "Cursor" property of your custom tool to change the standard cursor. internal class CustomMapTool : MapTool
{
public CustomMapTool()
{
IsSketchTool = true;
SketchType = SketchGeometryType.Rectangle;
SketchOutputMode = SketchOutputMode.Map;
//A custom cursor file as an embedded resource
var cursorEmbeddedResource = new Cursor(new MemoryStream(MapExploration.Resource1.red_cursor));
//A built in system cursor
var systemCursor = System.Windows.Input.Cursors.ArrowCD;
//Set the "CustomMapTool's" Cursor property to either one of the cursors defined above
Cursor = cursorEmbeddedResource;
//or
Cursor = systemCursor;
}
....
... View more
06-21-2018
01:28 PM
|
3
|
1
|
6823
|
|
POST
|
Hi Berend, Here is a snippet for this: Get a button's tooltip heading Thanks Uma
... View more
06-20-2018
11:10 AM
|
2
|
1
|
2011
|
|
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
|
2961
|
|
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
|
654
|
|
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
|
1507
|
|
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
|
6236
|
|
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
|
1535
|
|
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
|
1193
|
|
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
|
681
|
|
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
|
1556
|
|
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
|
1881
|
|
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
|
4034
|
|
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
|
4034
|
|
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
|
810
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | 01-21-2026 10:48 AM | |
| 1 | 09-18-2025 03:09 PM | |
| 1 | 11-04-2025 08:25 AM | |
| 1 | 09-23-2025 09:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|