|
POST
|
I think the reason this was happening is because when I enter a rowcreate or rowchange event I load the inspector with the row. In those events I have WPF forms that show, which works just fine. HOWEVER, when the Row with a certain shape comes in, I need to change the shape of that Row based on what it interesects or what other shapes it needs to be confined within. When you use Row.Store, the UI doesn't reflect the shape change immediatly, so I was using inspector.apply, which immediatly changed the shape on the UI. When I now set the Shape, and perform Row.Store, the UI doesn't reflect this behind the WPF form that is loaded as a dialog. I need the UI to reflect the shape changes or refresh the UI, and I think I will have this fixed. Inspector.ApplyAsync was the problem for sure.
... View more
02-11-2020
10:59 AM
|
0
|
2
|
1656
|
|
POST
|
private static void Cleanup(MapMember inMapMember) { FeatureLayer fl = inMapMember as FeatureLayer; fl.ClearDisplayCache(); } This doesn't appear to have any positve affect. The only fix is to remove and readd the layer. This appears to happen when loading an Inspector in the onchange or oncreate events.
... View more
02-10-2020
07:08 AM
|
0
|
0
|
1656
|
|
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
|
2091
|
|
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
|
609
|
|
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
|
2091
|
|
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
|
2198
|
|
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
|
1656
|
|
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
|
1695
|
|
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
|
3567
|
|
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
|
3567
|
|
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
|
3567
|
|
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
|
3567
|
|
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
|
3567
|
|
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
|
5533
|
|
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
|
1695
|
| 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 |
01-27-2026
08:03 AM
|