|
POST
|
I personally have not tried it. All I know is that your overlays are not persisted and to persist the geometries you need a feature class. This is also the same in the UI. The development team is aware of the current limitation and is looking into a solution. If you just need a temporarly feature class, my approach would be to create a scratch feature class in the projects default GDB, add whatever geometries are needed, export, and then perhaps delete the feature class.
... View more
10-01-2018
02:15 PM
|
0
|
1
|
3699
|
|
POST
|
Adding MapNotes like in the UI may be a bit heavy handed because it builds many point, line and polygon feature classes. It might be best if you create/reference your own feature class and add the geometries. Check out the Geodatabase and Geometry ProSnippets.
... View more
10-01-2018
10:57 AM
|
0
|
1
|
3699
|
|
POST
|
Hello and thank you for your feedback. Overlays are not persisted and in order for items to be exported they must be persisted. The solution is to create elements in a feature class. This is the same solution in the UI. MapNote (feature classes) are used in in place of graphics in a map view. Jeff
... View more
10-01-2018
10:41 AM
|
0
|
0
|
3699
|
|
POST
|
2.3 isn't planned for release until the start of 2019. Jeff
... View more
09-05-2018
10:42 AM
|
2
|
0
|
3800
|
|
POST
|
The original request to be able to import a pagx without the view opening in the application has been addressed in Pro 2.3 by adding an additional Boolean to the ImportItem method. IProjectMultiItem pagx = ItemFactory.Instance.Create(@"C:\Active\Layout\SDK\2.3\ImportItemTest.pagx") as IProjectMultiItem; await QueuedTask.Run(() => { Project.Current.ImportItem(pagx, false); //Layout view does NOT open (but is added to catalog pane) Project.Current.ImportItem(pagx, true); //Layout1 does open (and is added to catalog pane) }); Jeff
... View more
09-05-2018
10:16 AM
|
0
|
2
|
3001
|
|
POST
|
Hello Scott, We are looking at this issue for a possible 2.3 fix. Could you please clarify "layout activated / drawing complete". There are two scenarios 1) A layout it initialized - this is when a layout is opened for the first time and drawing is completed. 2) An already opened layout view (TAB) is activated. I assume you want to address #2 above. But what about 3) a scenario where you programatically add a layer to a map or you rearrange layer order or you rearrange elements in the TOC? These will also force a redraw. Do you want to know when the layout has stopped drawing here too? Thanks, Jeff
... View more
08-31-2018
01:56 PM
|
0
|
0
|
1298
|
|
POST
|
This will be addressed with Pro 2.3. The solution will be: LayoutProjectItem layoutItem = Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault(item => item.Name.Equals("Layout")); Layout lyt = await QueuedTask.Run(() => { return layoutItem.GetLayout(); }); lyt.ShowProperties();
... View more
08-21-2018
03:54 PM
|
2
|
0
|
891
|
|
POST
|
These events will be added for 2.3: ElementAdded, ElementRemoved, LayoutAdded. Thank you for bringing these events to our attention.\ Jeff
... View more
08-20-2018
02:20 PM
|
2
|
0
|
1699
|
|
POST
|
Oops - didn't realize I was replying to a second response from you (with the same work around).
... View more
08-20-2018
01:16 PM
|
0
|
0
|
3001
|
|
POST
|
Are the layout names hardcoded? Can you search for a layout pane and close it? ProApp.Panes.CloseLayoutPanes(layout.URI); At 2.3 we are adding a new event called LayoutAddedEvent which could be useful in this case. Jeff
... View more
08-20-2018
01:13 PM
|
0
|
1
|
3001
|
|
POST
|
Thank you for your feedback. We are looking into the request and are considering this for a future release. Jeff
... View more
08-20-2018
12:27 PM
|
0
|
4
|
3001
|
|
POST
|
Thank you for your feedback Tony! We did add a couple of new events for Pro 2.2: LayoutRemoving and Layout PausedDrawingChanged but we will strongly consider the 3 events you request for a near term release. Jeff
... View more
05-25-2018
09:59 AM
|
2
|
0
|
1699
|
|
POST
|
This has been addressed for the ArcGIS Pro 2.2 release. There is a r/o property called ActiveMapFrame on the LayoutView class. //ActiveMapFrame LayoutView lytView = LayoutView.Active; if (lytView == null) { System.Windows.MessageBox.Show("No LayoutView"); return; } MapFrame mf = lytView.ActiveMapFrame; if (mf == null) System.Windows.MessageBox.Show("No MapFrame"); else System.Windows.MessageBox.Show(mf.Name);
... View more
05-16-2018
08:22 AM
|
0
|
0
|
1847
|
|
POST
|
It can't be done with arcpy.mapping because we did not expose the same level of symbology detail in the ArcMap API.
... View more
05-10-2018
12:33 PM
|
0
|
0
|
6880
|
|
POST
|
This can be done with Python. Try pasting the following code into the Python window for ArcGIS Pro. Make sure your indents are correct (line 6 has a 2 space indent and line 7 has a 4 space indent). p = arcpy.mp.ArcGISProject('current') m = p.listMaps('map name here')[0] l = m.listLayers('layer name here')[0] sym = l.symbology for grp in sym.renderer.groups: for itm in grp.items: itm.label = itm.label.replace(","," - ") l.symbology = sym Jeff
... View more
05-10-2018
12:18 PM
|
0
|
2
|
6880
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-05-2025 11:20 AM | |
| 3 | 06-05-2025 09:21 AM | |
| 1 | 05-14-2025 01:19 PM | |
| 2 | 04-24-2025 07:54 AM | |
| 1 | 03-15-2025 07:19 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|