|
POST
|
Why would cim_lyr.featureTable.fieldDescriptions return an empty list when the feature layer clearly contains fields? @JeffBarrette @JeffMoulds
... View more
04-12-2021
02:29 PM
|
1
|
14
|
6124
|
|
POST
|
I am attempting to zoom to layer on the map view NOT the layout view. I am aware that I can zoom to a layer using the code below cam = c_project.activeView.camera ext = arcpy.Describe(layer).extent cam.setExtent(ext) c_project.save() My issue is that c_project.activeView returns None because the project is not yet open. @JeffBarrette @JeffMoulds
... View more
04-12-2021
01:43 PM
|
1
|
14
|
17005
|
|
POST
|
So what would you say would be the best way to accomplish what I am trying to do; open an attribute table, wait for it to be ready and then open the GoTo command?
... View more
04-01-2021
01:48 PM
|
0
|
0
|
2610
|
|
POST
|
Is it possible to subscribe to the "esri_editing_tableOpenState" state? How can I listen for when the table is open and ready in order to programmatically open the "esri_editing_tableGoTo" button?
... View more
04-01-2021
01:43 PM
|
0
|
0
|
2612
|
|
POST
|
Well, I subscribed to the ActivePaneInitializedEvent and placed a breakpoint inside the OnActivePaneInitialized method. When execution got inside that method, I expected pane.Initialized to be true but it was false. So yes ActivePaneInitializedEvent did fire first.
... View more
03-30-2021
10:28 AM
|
0
|
1
|
2628
|
|
POST
|
I am writing code that opens up the attribute table and then proceeds to open the GoTo command. The attribute table needs to be fully loaded before the GoTo command will execute. I subscribed to the ActivePaneChangedEvent to ensure initialisation of the table. I was surprised however to discover that the ActivePaneChangedEvent happens before the pane is fully initialised. In the code below pane.Initialized returns false inside the ActivePaneChangedEvent. Is this expected behaviour? @UmaHarano @Wolf ActivePaneInitializedEvent.Subscribe(OnActivePaneInitialized);
var openTableBtnCmd = FrameworkApplication.GetPlugInWrapper("esri_editing_table_openTablePaneButton") as ICommand;
if (openTableBtnCmd != null)
{
// Let ArcGIS Pro do the work for us
if (openTableBtnCmd.CanExecute(null))
{
openTableBtnCmd.Execute(null);
}
}
private void OnActivePaneInitialized(ActivePaneInitializedEventArgs obj)
{
var pane = FrameworkApplication.Panes.ActivePane;
if (pane is ITablePane)
{
if (pane.Initialized)
{
var goToBtnCmd = FrameworkApplication.GetPlugInWrapper("esri_editing_tableGoTo") as ICommand;
if (goToBtnCmd != null)
{
if (goToBtnCmd.CanExecute(null))
{
goToBtnCmd.Execute(null);
}
}
}
}
}
... View more
03-29-2021
02:38 PM
|
0
|
7
|
2712
|
|
POST
|
I know that there is currently no option to center on a selected record in an attribute table but is this possible to do in the pro sdk? @UmaHarano @Wolf
... View more
03-26-2021
11:20 AM
|
0
|
2
|
1072
|
|
POST
|
@Wolf In Pro, when you open an attribute table, you can freeze some fields so that they always appear at the start of the table. I've updated the question with more details.
... View more
03-24-2021
02:19 PM
|
0
|
6
|
2305
|
|
POST
|
Is there a way to freeze attribute table fields programmatically in ArcGIS Pro SDK? Ideally one would open a feature layer or table and have the fields be pre frozen to always appear to the left side of the attribute table. @UmaHarano @Wolf
... View more
03-24-2021
12:00 PM
|
0
|
8
|
2359
|
|
POST
|
@NobbirAhmed Can you actually use this python code in C#?
... View more
01-12-2021
12:05 PM
|
0
|
1
|
4154
|
|
POST
|
@Wolf I see this line RelationshipClassDefinition enterpriseDefinition = geodatabase.GetDefinition<RelationshipClassDefinition>("LocalGovernment.GDB.AddressPointHasSiteAddresses"); but in my case I don't have the name of the relationship class. I just have the feature class that has the relationship. The link you sent I believe requires that you have the name of the relationship class.
... View more
01-12-2021
11:20 AM
|
1
|
1
|
4179
|
|
POST
|
Is there a way to check if a feature class/table has a relationship and if so, to return that relationship for further processing?@UmaHarano @Wolf @RichRuh @NobbirAhmed
... View more
01-12-2021
10:53 AM
|
1
|
9
|
4190
|
|
POST
|
@RichRuh How do I retrieve the relationship class from a feature class? I have a feature class that has a relationship class. I won't know the name of the relationship class or the name of the destination table. Is there a way to retrieve the relationship class from a feature class that I am working with?
... View more
01-12-2021
10:41 AM
|
0
|
0
|
1738
|
|
POST
|
@Wolf I cannot use pro's selection tool because I need to select by POINT which is not available in the pro selection options. That is why I am utilizing a MapTool. When the user draws a point, I am attempting to create a buffer and select features in the buffer but I run into the issues that I explained in my original post. That is how to get a buffer distance that varies based on the scale.
... View more
01-12-2021
09:56 AM
|
0
|
0
|
981
|
|
POST
|
When a user clicks on a map, I am creating a buffer around the clicked point and using a SpatialQueryFilter to select features that intersect the buffer. The distance that I use to create the buffer should depend on how zoomed in/out the user is. I am essentially attempting to replicate the Explore tool's feature selection functionality. I tried utilising SelectionEnvironment.SelectionTolerance as below: var bufferGeom = GeometryEngine.Instance.Buffer(clickedPnt, SelectionEnvironment.SelectionTolerance) but this gives me the same buffer distance at all zoom levels such that even when the user is zoomed in at 1:1, I still get multiple features included in my query which is not what I need. @UmaHarano @Wolf
... View more
01-06-2021
10:32 AM
|
1
|
2
|
1016
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-12-2021 01:43 PM | |
| 1 | 04-12-2021 02:29 PM | |
| 1 | 08-26-2019 01:13 PM | |
| 1 | 04-13-2021 10:11 AM | |
| 2 | 04-14-2021 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-13-2021
12:15 PM
|