|
POST
|
I need a quick workaround to this or to somehow set the registry setting on the users install? Is there a registry setting for this that is configurable on install, much like the "Check for Updates" option. Ideally I would like to make a code change and prevent the popup in general.
... View more
02-10-2020
05:58 AM
|
0
|
0
|
1410
|
|
POST
|
In the 2.5 version of Pro does CreateRow have some slightly different behavior? In my code that worked with previous versions, CreateRow(rowBuffer) i don't recall triggered the RowChangedEventArgs. It makes sense that it does, but in my old code when creating the row from the row buffer this was never triggered. Should I want to skip the RowChangeEvent, I think I will need to again track something on that ROW, however I can't get an ObjectID from the Row buffer? Do I have to use the Handle? //This line now triggers Row Create event, where as it didn't before? It think?
using (Row NewFieldRow = layerTable.CreateRow(rowBuffer))
{
NewFieldGlobalID = NewFieldRow.GetRowTableValue("GlobalId");
NewCurrentFieldObjectID = NewFieldRow.GetObjectID();
}
... View more
02-07-2020
11:48 AM
|
0
|
0
|
464
|
|
POST
|
This is also happening on a DataInspector.Apply(). The Screen comes up and i hit ok, but my code is stuck on the Apply line of the code
... View more
02-07-2020
09:32 AM
|
0
|
0
|
1410
|
|
POST
|
protected async override void OnClick()
{
try
{
await QueuedTask.Run(async () =>
{
Inspector selectedItemInspr = new Inspector();
selectedItemInspr = await FeatureServiceManagement.GetFirstSelectedItem();
if (!selectedItemInspr.IsNullOrEmpty() && !selectedItemInspr.Shape.IsNullOrEmpty())
{
FeatureLayer FieldFeatureLayer = FeatureServiceManagement.GetFeatureLayer("Field");
if (FieldFeatureLayer != null)
{
EditOperation CreateCurrentOperation = new EditOperation
{
Name = "Create Field Button"
};
//Create a feature with a polygon
CreateCurrentOperation.Create(FieldFeatureLayer, selectedItemInspr.Shape);
//THIS IS HUNG
CreateCurrentOperation.Execute();
}
}
});
}
catch (Exception e)
{
LogError("CreateField - OnClick", e);
}
} I just installed 2.5 and have begun to test my addin and have run into a problem right away. I have a button that creates a feature based on a selected feature using an Edit operation. After the Execute() command is run, it looks like the warning box for editing updates might be blocking the UI. It just sits and spins waiting for the Execute command to finish.
... View more
02-07-2020
08:49 AM
|
0
|
6
|
1517
|
|
POST
|
I will try the ClearDisplayCache and probably update to 2.5 right now to get the latest and greatest. I am monitoring performance degredation using the Diagnostics Monitor and seeing how long the redrawasync takes after my code runs. Just click the recycle button on the bottom right and watch the RedrawAsync in the Diagnostics Monitor. It will gradually go from 500ms and continually rise. What I am doing is on the RowChange event or RowCreate I am loading an inspector with the Arg.Row. If I do this an number of times the redraw async takes longer and longer everytime
... View more
02-07-2020
07:13 AM
|
0
|
1
|
1232
|
|
POST
|
It seems that I can get this to work using the Rows. But I have noticed now that anytime I use Insperctor in the Row events at all, it begins to seriously slow down ArcGIS Pro. If you simply load an Inspector in the Row event, after a couple of times the system will start to degrade. Is there something that is not getting "Cleaned Up" or "Disposed" of in the Row event when you want to load an inspector from the Row that was sent in?
... View more
02-06-2020
09:28 AM
|
0
|
1
|
1211
|
|
POST
|
The workaround is to remove the layer and programmatically add them back in whenever the map gets slow or isbusy? I cant figure out why it gets so busy when adding features but i need a way to break the spinning? The only way I could find to do this is by actually removing and readding the FeatureLayer. In doing this I have to add the Definition Query back on and everything. Can anyone think of a way to accomplish what I want here in 2.4.3 without having to remove and readd the layer? Any Feature Layer function that would accomplish this that I am missing?
... View more
02-05-2020
01:04 PM
|
0
|
2
|
2861
|
|
POST
|
I have two layers that get edited quite frequently either through direct updates or updates based on related items withing the same layer or another related layer. Basically items within the same layer cannot intersect and must be confine to items in another layer. So if one item is moved or has its vertex change, and that change affects another item in that same layer or another, that other item must update itself. That being said, I realized that the RedrawAsync will work much faster if I remove and add back in the layers that are causing the problem. How can i do this programatically, or what can i do that will have the same affect? Is this what Invalidate will do? If so when will 2.5 be released? I am migrating all the code now to 2.4.3. Is there a workaround on this for 2.4.3?
... View more
02-04-2020
12:00 PM
|
0
|
0
|
2861
|
|
POST
|
I am starting to look at the resource monitor. And after I update a number of items using an inspector. My redraw starts to crawl?
... View more
01-31-2020
07:58 AM
|
0
|
0
|
2861
|
|
POST
|
This seems to be happening after i create a bunch of rows. I have a tool that allows you to create a number of polygons on a selected a polygon automatically. This is used to speed up some mapping. In this process I create a number of rows using table.createrowbuffer. I think i am cleaning everything up correctly but not sure. But it seems after a while that these creations cause my redraw to slow down considerably.
... View more
01-30-2020
09:24 AM
|
0
|
0
|
2861
|
|
POST
|
Other systems and processes update our database directly, but in order to see those changes you must refresh the map/redraw. This process of either redrawing in code or using the oob refresh just seems to take longer and longer each time. Is there a way to refresh just one of my feature layers instead of the entire map?
... View more
01-28-2020
03:08 PM
|
0
|
1
|
2861
|
|
POST
|
I am working with ArcGIS Pro and have built a configuration AddIn on the application. My configuration helps in creating drawing and attribute rules for the new features created via a feature service. After a feature is created, it is necessary for me to Redraw the map to insure that I have the latest values from our ArcGIS Server and Database. This keeps our mapping system upto date with values that might have changed via database updates. Anyway I use await MapView.Active.RedrawAsync(true); which works fine for a while. Then after some time, the process becomes very slow and takes almost a minute to complete. My ArcGIS Pro toolbars go Gray until it is complete. I can also use the OOB Redraw and it does the same thing and takes upwards of a minute to complete Is there a way for me to do this in a more efficient manner (to update my features, map, cache?). Or am a missing a setting somewhere that would improve my map. I have 17 maplayers that all get redrawn, where only 2 of them probably need the redraw. But the only way I can think to redraw is on the the MapView.Active map. This slowness kills my ArcGIS Pro session. Any Ideas?
... View more
01-28-2020
02:53 PM
|
0
|
15
|
4403
|
|
POST
|
I was able to use the Row to detect if a CancelEdit had to be performed. Thank you for your help in this. Should I look into moving all of my inspector code to use Row instead? I build most of my program on the Inspector model, but maybe I should switch back to Row like we use to do with ArcObjects?
... View more
01-28-2020
02:45 PM
|
0
|
1
|
1211
|
|
POST
|
can you think of any other work around where I can load the Inspector. I use the inspector in the row change to do a number of things and don't want to really change all my code if I don't have to? I load the inspector for this Row into an object that then has functions to ask and query information about the specific layer and related layers to the Row that is being edited and updated.
... View more
01-28-2020
07:09 AM
|
0
|
1
|
1211
|
|
POST
|
I have narrowed down why this is happening, but might need some guidance. It appears that in the RowChange event this is happening because I load an inspector in the event to check a value of the selected row. If that value is true i cancel the edit. This DOES NOT work in the row change event. In the delete event, I have to check a value as well using an inspector and this DOES work. When I load an inspector in the onDelete it works like it should in 2.4.3, but in onChange if I use the inspector.load for that arg and objectid, the canceledit does not work This does not work in the onChange event (it doesn't rollback) //This doesn't rollback the change because of the inspr.load, i have stepped through both
//with and without this line. This worked in the old version
protected async static void OnRowChangeEvent(RowChangedEventArgs args)
{
Inspector inspr = new Inspector();
long _updateOID = args.Row.GetObjectID();
//Get the layer of the selected item
FeatureClass newFC = (FeatureClass)args.Row.GetTable();
string updateItemName = newFC.GetDefinition().GetAliasName();
FeatureLayer firstFeatureLayer = FeatureServiceManagement.GetFeatureLayer(updateItemName);
//Load the inspector
await inspr.LoadAsync(firstFeatureLayer, _updateOID);
args.CancelEdit();
}
This DOES work in the onDelete event (it doesn't delete, it rolls back) protected async static void OnRowDeleteEvent(RowChangedEventArgs args)
{
Inspector inspr = new Inspector();
long _updateOID = args.Row.GetObjectID();
//Get the layer of the selected item
FeatureClass newFC = (FeatureClass)args.Row.GetTable();
string updateItemName = newFC.GetDefinition().GetAliasName();
FeatureLayer firstFeatureLayer = FeatureServiceManagement.GetFeatureLayer(updateItemName);
//Load the inspector
await inspr.LoadAsync(firstFeatureLayer, _updateOID);
args.CancelEdit();
}
... View more
01-27-2020
12:49 PM
|
0
|
3
|
1953
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-23-2018 06:49 AM | |
| 1 | 08-02-2023 08:28 AM | |
| 1 | 01-03-2020 10:54 AM | |
| 1 | 11-30-2017 06:41 AM | |
| 1 | 08-20-2018 01:10 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-22-2025
04:33 AM
|