POST
|
Awesome, thank you. I landed on something similar and am now wondering, in which situations is it better to use one over the other? MapView . Active . Map . GetLayersAsFlattenedList ( ) . OfType < GroupLayer > ( ).ToList(); VS IReadOnlyList<GroupLayer> groupLayers = MapView.Active.Map.Layers.OfType<GroupLayer>().ToList(); Thanks!
... View more
10-10-2018
07:34 AM
|
0
|
3
|
35
|
POST
|
Thanks for the reply. It appears I was using it incorrectly! Once I used the ToList() I was able to get them all! Thank you.
... View more
10-10-2018
07:23 AM
|
0
|
0
|
35
|
POST
|
Hello. I am trying to mimic something I have setup in Arc10.6 - ArcObjects to ArcPro 2.2 - ArcPro SDK and am having a hard time finding what I am looking for. Basically, I am trying to change the visibility of different group layers in the TOC. With ArcObjects I was able to use ICompositeLayer to easily get into the various group layers. Now... I'm sort of at a loss. I tried MapView.Active.Map.Layers AND MapView . Active . Map . GetLayersAsFlattenedList ( ) . OfType < GroupLayer > ( ) Just not sure I'm using it correctly as it only gets me to the first level of grouplayers. Maybe I can just use the GroupLayer class? The common structure of my group layers are - Group A > Group B > Group C > FeatureLayer. Any tips or documentation for setting the visibility of a group layer would be greatly appreciated!
... View more
10-05-2018
09:17 AM
|
0
|
7
|
278
|
POST
|
Any reason this wouldn't work with ItemAdded/ItemRemoved? private static IActiveViewEvents_Event Events { get { return ArcMap.Document.ActiveView as IActiveViewEvents_Event; } } void Event_OnOpenDoc() { ArcMap.Events.OpenDocument += delegate() { Events.ItemAdded += Events_ItemAdded; }; } private void Events_ItemAdded(Object item) { MessageBox.Show("ItemAdded"); } I am able to run this without error but nothing happens when an item is added to the view. I feel like I'm missing something or using this incorrectly. Any help with this is greatly appreciated!
... View more
04-07-2016
01:50 PM
|
0
|
0
|
11
|
POST
|
This was the issue. We use annotation layers and sure enough there is a relationshipclass on the file it errored on. Thank you, and everyone else for the great help on this.
... View more
04-10-2015
07:36 AM
|
1
|
0
|
13
|
POST
|
Is there a way to tell if there is a relationship class attached to it?
... View more
04-10-2015
05:50 AM
|
0
|
2
|
13
|
POST
|
That's why I am wondering if there is something strange with creating a FGDB with one license level and then trying to alter it with another. I'll take a look at the matrix but it seems really wrong that I wouldn't be able to do something basic like add a field. Regardless of which license level I was using. Thanks for the info(I also didn't mean to mark my post as helpful, sorry).
... View more
04-09-2015
03:20 PM
|
1
|
5
|
26
|
POST
|
It's not an SDE GDB... That's why I thought it was strange. But i tested it with the Standard license and there was no issue.
... View more
04-09-2015
03:16 PM
|
0
|
0
|
26
|
POST
|
it's just an addField on a featureclass table in a GDB.
... View more
04-09-2015
02:59 PM
|
0
|
2
|
26
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|