POST
|
Thanks for the suggestion. I tried using UpdateOverlay() in my MapTool by passing my cached text graphic (IDisposable), new point location, and cached symbolreference but the method is returning false each time and it results in the map view showing just a black dot representing the lower left of the text moving around the screen instead of the text. What could explain this behavior? Thanks, Martin
... View more
10-05-2021
07:55 AM
|
0
|
0
|
874
|
POST
|
Hi, I'm looking for a way to more rapidly show dynamic graphics overlaid on a MapView. In ArcObjects, I achieved this using the caching ability of the IScreenDisplay interface and was able to smoothly move a piece of text across the screen as the user moved his mouse. In Pro SDK, I'm using the MapView.Active.AddOverlay() extension method to add an overlay at a location, dispose it, and then it add again at a new location. This works but the refresh rate is very slow, in comparison to what I see in ArcMap on the same machine. Is there a way to do more efficiently so that the refresh rate is improved? Thanks, Martin
... View more
10-04-2021
02:23 PM
|
0
|
3
|
923
|
POST
|
No, I've set up a single geodatabase in SDE schema for all users.
... View more
03-12-2021
07:35 AM
|
0
|
0
|
592
|
POST
|
Hi George, Thanks for your response. I haven't added these tables to the Table of Contents. I would have expected that if the permission to create/delete tables in other schemas is granted to a schema with Oracle, then this would enable the same schema in Pro (schema configured on the sde connection) to create/delete tables in other schemas. Also, I found it odd that if you try to delete a table in another schema in the Catalog view, the deletion doesn't take place and no error message is given. However, if the deletion is tried from the Geoprocessing Delete tool, then the deletion fails with a warning that the table may be locked (it's not). I know that sql select and sql update is possible on tables in other schemas in Pro. Thanks, Martin
... View more
03-12-2021
06:33 AM
|
0
|
2
|
596
|
POST
|
Hi, I have found that if I create a table in my Oracle Geodatabase with a name that is prepended with its schema, in which its schema is different from my connection, then ArcGIS Pro removes the schema from the name and just creates the table in the schema to which I'm connected. In ArcMap, the table would successfully be created in the schema specified as part of its name. Similarly, if I try to delete a table in a different schema from my own (my schema has rights to delete the table), ArcGIS Pro doesn't give an error; it just doesn't delete it. Is there a way to overcome this behavior? Thanks, Martin
... View more
03-11-2021
01:42 PM
|
0
|
4
|
670
|
POST
|
Thanks alot for the project and the guidance. I will try this out and let you know. I still need to open the Pro Project as I need access to the Map's Table of Contents but I'll read up on configurations - I haven't done much with them yet. Thanks, Martin
... View more
06-12-2020
05:46 AM
|
0
|
0
|
298
|
POST
|
Hi Rich, Thanks. Unfortunately, I need to delete and recreate the table. Martin
... View more
06-12-2020
05:21 AM
|
0
|
0
|
298
|
POST
|
I'm starting ArcGIS Pro with command line parameters from an external driver program. The name of the ArcGIS Pro project to load is part of the command line parameters. I've installed an add-in so that when ArcGIS Pro opens, my add-in is called. I then register in my add-in for the ApplicationStartupEvent event. When this event is triggered, I then register for the ActivePaneChangedEvent event and DrawCompleteEvent event. If the user saved his Project such that the currently showing pane is not a MapView that I'm interested in, I search for the pane that I am interested in the ActivePaneChangedEvent event handler and Activate it so that the MapView I"m interested in will show up and draw. Your assumptions; 1. You know which annotation tables you like to 'refresh' by name and file GDB path. - correct 1. Your 'refresh' is in essence deleting the annotation feature class first and then recreating it. - correct 1. When a mapview is opened you want it to display the 'refreshed' annotation. - this doesn't matter to me as when the user opens his Project manually, he should see the updated annotation since the annotation layer he added manually will still be there, just with new content. Workflow: All correct except the last three items. I'm re-creating the annotation feature class inside the ArcGIS Pro process that I launched but, I'm doing so by copying an existing template annotation feature class that the user created because there is no way to create an annotation feature class in Pro SDK (in contrast to ArcObjects) because of a bug in the management.CreateFeatureClass GP tool that was reported in 2011 but never fixed according to the GeoNet forum). Do you happen to know if I'm wrong about that? Because the Pro docs say to use the management.CreateFeatureClass tool as the only way to create an annotation feature class but the docs for the GP tool don't have an option for feature class type of annotation (if you try with "annotation", it gives an error). I don't add the annotation layer back into the TOC since when the user re-opens his Project, his annotation layer will still be there since I don't save the Project when I shut down ArcGIS Pro after the add-in workflow is completed. Thanks, Martin
... View more
06-11-2020
01:30 PM
|
0
|
2
|
836
|
POST
|
I determined that if I set a Timer and execute my code 10 sec after the ApplicationStartupEvent event is fired, then the map.RemoveLayer() doesn't hang so as you pointed out, ArcGIS Pro isn't ready to execute that method when the ApplicationStartupEvent is fired. Do you know if there is any event fired that indicates ArcGIS Pro is done fully starting up? Thanks, Martin
... View more
06-11-2020
12:53 PM
|
0
|
0
|
836
|
POST
|
Thanks for the detailed response. Unfortunately, Alt+Ctrl+M doesn't do anything once ArcGIS Pro comes up but maybe that's because its UI thread is busy in my module. But I'll look more into that Diagnostics tool. Basically, on start-up of ArcGIS Pro, I'm deleting an annotation table and then re-creating it in order to fill it with new annotation generated by an external batch process. If the annotation table to be deleted exists in the Table of Contents, then the Geoprocessing tool, management.Delete, hangs. In order to avoid that hang, I wanted to remove the annotation layer from the TOC since when I do this manually, then the Delete GeoProcessing tool doesn't hang. Thanks, Martin
... View more
06-11-2020
11:56 AM
|
0
|
7
|
836
|
POST
|
Hi Wolfgang, Ok, thanks. Then it's probably a bug then I guess as I'm not calling that code from a UI action (e.g. button click) but instead from a Module after the ApplicationStartupEvent event is fired and then after the OnCompletedDrawEvent is fired for the MapView I'm interested in. Thanks, Martin
... View more
06-11-2020
10:39 AM
|
0
|
0
|
836
|
POST
|
Hi Wolfgang, I'm doing something nearly the same. Here is my code: Task removeOutputLayersTask = QueuedTask.Run(() => { List<Layer> layersToRemove = new List<Layer>(); foreach (AnnotationLayer annotationLayer in m_map.GetLayersAsFlattenedList().OfType<AnnotationLayer>()) { AnnotationFeatureClass featureClass = annotationLayer.GetFeatureClass() as AnnotationFeatureClass; using (featureClass) { if (featureClass != null) { if (featureClass.GetDatastore().GetPath().AbsolutePath == m_geodatabaseLocation && (featureClass.GetName() == m_name) { layersToRemove.Add(annotationLayer); } } } } m_map.RemoveLayers(layersToRemove); } removeOutputLayersTask.Wait(10000); Thanks, Martin
... View more
06-11-2020
09:19 AM
|
0
|
2
|
836
|
POST
|
Hi, I can create bulk annotation in a file geodb in ArcObjects much faster than in ArcGIS Pro SDK. In ArcGIS Pro SDK, I'm using the way described in the ProSnippets in the following way: RowBuffer rowBuffer = targetFeatureClass.CreateRowBuffer(); rowBuffer["LAYERNAME"] = ""; AnnotationFeature annotationFeature = targetFeatureClass.CreateRow(rowBuffer); <some stuff> annotationFeature.Store(); Is there another way to do this that's much faster? Thanks, Martin
... View more
06-11-2020
06:30 AM
|
0
|
0
|
187
|
POST
|
HI, When I call Map.RemoveLayers() on a list of annotation layers, ArcGIS Pro hangs up. Any idea why? Thanks, Martin
... View more
06-11-2020
05:18 AM
|
0
|
13
|
1224
|
POST
|
Hi Uma, Thanks for your response and for sending the links. Unfortunately, I need to create my own annotation for my application. The ProSnippets document points to the GeoProcessing tool Create Feature Class as the way to create an annotation feature class. But the tool's documentation doesn't mention annotation as an option - this is only supported as part of the Catalog functionality. A bug was reported in 2011 to ESRI regarding the Create Feature Class not supporting annotation but this was never fixed. Thanks, Martin
... View more
05-22-2020
10:04 AM
|
0
|
0
|
297
|
Online Status |
Offline
|
Date Last Visited |
01-03-2024
11:52 AM
|