|
POST
|
Hi Michael, As a work around, please specify the full path (including the filename) to the ExportToPDF method. This works for me. Looks like "OutFileName" property on the PDFFormat is being ignored. I will follow up on this one with the Report team. Thanks! Uma report.ExportToPDF($@"C:\Users\UserName\Documents\ArcGIS\reportnew.pdf", pdfFormat, exportOptions, false); Thanks
... View more
10-18-2021
07:15 AM
|
0
|
0
|
2245
|
|
POST
|
Hi I am able to see this issue also. I have shared this info with the developer and will let you know when there is a resolution. Thanks for reporting this! Uma
... View more
10-01-2021
10:10 AM
|
0
|
1
|
1654
|
|
POST
|
Hi, The Pro development team will soon allow the background set in the Map View to automatically display in the Layout's map frame also. Unfortunately at this time, you have to set the MapFrame's background even if your Map view has the background set already set.
... View more
09-23-2021
02:46 PM
|
0
|
1
|
4952
|
|
POST
|
Here is a code snippet to help you - //Get the selected item in the Catalog pane
//Cast as Layout Project item.
var selectedLayout = Project.GetCatalogPane(true)?.SelectedItems.FirstOrDefault() as LayoutProjectItem;
if (selectedLayout == null) return;
//Call Pro's Command to open the selected layout
// ArcGIS Pro Command's DAML ID.
var commandId = "esri_layouts_projectItem_LayoutProperties";
// get the ICommand interface from the ArcGIS Pro Button
// using command's plug-in wrapper
var iCommand = FrameworkApplication.GetPlugInWrapper(commandId) as ICommand;
if (iCommand != null)
{
// Let ArcGIS Pro do the work for us
if (iCommand.CanExecute(null))
{
iCommand.Execute(null);
}
}
... View more
09-21-2021
08:58 AM
|
0
|
0
|
2003
|
|
POST
|
You have to display the cancel button in order to get the Cancel result. var results = MessageBox.Show("msg", "Title",
System.Windows.MessageBoxButton.OKCancel,
System.Windows.MessageBoxImage.Information)
... View more
08-31-2021
11:12 AM
|
0
|
0
|
2466
|
|
POST
|
Hi, You can use the "Embeddable control" to accomplish this. The Pro SDK Embeddable Control item template will help get you started with this. This control can be used with a Map Tool. When you activate the map tool, the embeddable control on the map will be visible. Here is a link with documentation help: https://github.com/Esri/arcgis-pro-sdk/wiki#embeddable-control Thanks Uma
... View more
08-27-2021
07:11 AM
|
0
|
0
|
1222
|
|
POST
|
To disable or "lock in" the scale for a MapFrame in a Layout, the CIM definition of the Layout Map Frame has to be configured. CIM is Pro's Cartographic Information Model. The code snippet below illustrates this. I get the Camera and Extent of the MapView associated with the Map Frame. The Map Frame is then "locked" to this scale. QueuedTask.Run( () => {
var layoutMapFrame = LayoutView.Active.ActiveMapFrame;
//Get the CIM Definition of the Map Frame
var cimMapFrame = layoutMapFrame.GetDefinition() as CIMMapFrame;
//Get the Camera and Extent properties on the associated Map View of the map frame.
var mapView = layoutMapFrame.GetMapView(LayoutView.Active);
var mapViewCamera = mapView.Camera;
var mapViewExtent = mapView.Extent;
//Create a new CIMAutoCamera
//using the mapview's camera and extent.
//Create CIMViewCamera first.
//This is used in the CIMAutoCamera
var cimViewCamera = new CIMViewCamera
{
Heading = mapViewCamera.Heading,
Pitch = mapViewCamera.Pitch,
Roll = mapViewCamera.Roll,
Scale = mapViewCamera.Scale,
ViewportHeight = mapViewCamera.ViewportHeight,
ViewportWidth = mapViewCamera.ViewportWidth,
X = mapViewCamera.X,
Y = mapViewCamera.Y,
Z = mapViewCamera.Z
};
//Create CIMAutoCamera
var autoCamera = new CIMAutoCamera
{
Camera = cimViewCamera,
Extent = mapViewExtent,
AutoCameraType = AutoCameraType.Scale,
Source = AutoCameraSource.Fixed,
SyncRotation = true
};
//Set the MapFrame's auto camera to the new CIMAutoCamera
cimMapFrame.AutoCamera = autoCamera;
//Set the CIM Definition
layoutMapFrame.SetDefinition(cimMapFrame);
});
... View more
08-26-2021
10:34 AM
|
2
|
0
|
2286
|
|
POST
|
Hi Instead of using the GP Tool to apply the symbology from lyrx file, I recommend using LayerDocuments. You can apply symbology to a feature layer from an existing lyrx file by accessing the CIMFeatureLayer from the LayerDocument. Here is a code snippet to help with this. var featureLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
QueuedTask.Run( () => {
//Create a LayerDocument from a Lyrx file.
var layerDocument = new LayerDocument(@"C:\Temp\Symbology.lyrx");
//Get the renderer used in the lyrx file using the CIMLayerDocument
//This lyrx file has a unique value renderer
var cimFeaturLayer = layerDocument.GetCIMLayerDocument().LayerDefinitions[0] as CIMFeatureLayer;
var rendererToUse = cimFeaturLayer.Renderer as CIMUniqueValueRenderer;
//You can make your changes to the renderer now
//rendererToUse.DefaultSymbol = ...
//Set the renderer to the feature layer
featureLayer.SetRenderer(rendererToUse);
}); Can you please try your workflow with this and see if you get the expected result? Please let me know if you get stuck. Thanks! Uma
... View more
08-16-2021
10:51 AM
|
1
|
0
|
3358
|
|
IDEA
|
Hi Using the Pro SDK, you can generate Reports and customize/edit existing reports. Here are some of the links that can help you get started on this: ProConcepts: Report Code snippets for reports A sample that shows how you can create and edit existing reports. Developer summit tech session on Reports Please let us know if you have any specific workflows with reports that you need help with. Thanks Uma
... View more
08-16-2021
08:28 AM
|
0
|
0
|
1210
|
|
POST
|
Here is another way to get the Catalog Pane, selected items: //Get the catalog pane
ArcGIS.Desktop.Core.IProjectWindow projectWindow = Project.GetCatalogPane();
//Get the selected items from the catalog pane:
var items = projectWindow.SelectedItems();
//or get the active catalog view...
//ArcGIS.Desktop.Core.IProjectWindow projectWindow = Project.GetActiveCatalogWindow();
... View more
06-14-2021
03:53 PM
|
1
|
0
|
2335
|
|
POST
|
The Utilities vsix has been uploaded now to the assets section of the 2.7 release page. Thanks! Uma
... View more
05-24-2021
09:21 AM
|
0
|
0
|
7067
|
|
DOC
|
Hello! The ProSnippets:Map Authoring wiki page is where you can find snippets for creating various layers using the Pro API. Here is a snippet that illustrates how to add a WMS service: https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-MapAuthoring#add-a-wms-service
... View more
05-19-2021
08:15 AM
|
0
|
0
|
5832
|
|
POST
|
Hi, You could cast the SelectedItem to the Type you are interested in. ArcGIS.Desktop.Core.IProjectWindow currentProjectWindow = Project.GetCatalogPane(true);
var selectedItem = currentProjectWindow.SelectedItems.FirstOrDefault();
var folderConnection = selectedItem as MapProjectItem; //FolderConnectionProjectItem, etc Thanks Uma
... View more
05-10-2021
09:12 AM
|
0
|
2
|
2495
|
|
POST
|
Hi, Thank you for this information. I am now able to see the problem too. I will submit an issue for this bug and get back to you when I have updates on its resolution. Thank you for reporting this one! Uma
... View more
05-04-2021
10:20 AM
|
0
|
1
|
1857
|
|
POST
|
Hi Can you please give me a little info on how you changed the caption in your workflows? Also, please let me know the Pro version you are using. I tried a simple caption change in the ribbon button and it worked for me. The same button placed in the burger menu reflected the change. Thanks Uma
... View more
05-04-2021
09:07 AM
|
0
|
3
|
1865
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2026 09:54 AM | |
| 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 |
yesterday
|