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.

closed as off-topic by PolyGeo Feb 16 '17 at 4:44

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.