1

I have a Python script (Python add-in) that creates new entries (with InsertCursor) in an event table that was used for linear referencing (through Display Route Events). The table is stored in a file GDB.

My first problem is linked to this question:

Refreshing open attribute table in ArcMap using ArcPy rather than ArcObjects?

the table is not reflecting the edition, except if I close the table tab and relaunch it, or if I sort an attribute of the table. I have tried all solutions exposed in this question. But that’s OK, I can deal with a manual refresh.

My main problem is that the entries I have created are “dead datas”: they are not represented in the map. My only solution is either to close the mxd and relaunch it, or edit them again, and then the segment created is shown.

I have tried to edit the layer (not the table), to update the entries directly after their creation (in the same script), to recreate a new event layer (display route events) and to change to "da" cursors, but the problem remained.

9
  • 1
    Please edit the question to specify the exact data storage format in use. I expect you'll find that only true databases will passively flush data contents for subsequent reread.
    – Vince
    Commented Feb 3, 2017 at 11:24
  • Thanks for quick reply! It can be a good explanation, i will try on SDE to see if it is working. But if anyone have a workaround for such edition on file GDB I take it :-)
    – JustAsking
    Commented Feb 3, 2017 at 11:35
  • By "edition" I think you must mean editing.
    – PolyGeo
    Commented Feb 3, 2017 at 11:36
  • 1
    I have similar, but different question here: Refresh linear referencing layer that's based on a database view, without closing ArcMap
    – User1974
    Commented Feb 5, 2017 at 13:38
  • 1
    I came up with an answer which might be what you're looking for: gis.stackexchange.com/a/247703/62572
    – User1974
    Commented Aug 4, 2017 at 20:40

0