On our map, after user draw a polyline on map and click "Save Edits", we need user to input the attributes related to the polyline drawn. In case user forget or skip this step (input attribute related), I intent to develop a function to open the "Create New Object" window (shows below) automatically, which means once user click "Save Edits" the "Create New Object" window will be open.

The "Create New Object" window is script tool in toolbox.

It should be auto triggered in the ArcGIS editor, my question is must I write my own editor, or is there a way to use the existing editor provided by ArcGIS?

I am using ArcGIS 10.2.

enter image description here

  • I think we still need more details about your workflow. For example, are you just wanting to capture the attributes of the last feature captured or something else? If this meant to be part of a Python AddIn or something else? – PolyGeo Jun 10 '14 at 8:03

You could just substitute existing Save Edits button in the Editor toolbar > Editor using Customize menu > Customize mode in ArcGIS.

Read my answer on Customizing right click (context) menu of selected feature using ArcPy?

About configuring the user interface (Esri Help)

  • Thanks a lot Alex, It seems PolyGeo is correct, I mislead you, sorry about it, I have edit the question, thanks. – ppLily Jun 10 '14 at 7:40
  • My answer is still applicable. You have a custom script tool which you can add as a button "Save Edits" to the Editor toolbar. This will open the GP dialog box of your tool. – Alex Tereshenkov Jun 10 '14 at 9:13

If I understand your question correctly, you can accomplish this without a custom tool. After you start an editing session, on the Editor Toolbar go to Editor>Options.

On the Attributes tab, check Display the attributes dialog before storing new features, and then select the feature class you want to enforce this behavior on.

Whenever a new feature is created in this feature class, the attribute editor dialog box will open.

enter image description here

  • Yes Zachary, your understanding is right and I have tested on my map, thanks a lot! – ppLily Jun 11 '14 at 1:31
  • Hi Zachary, I suddenly realise that I haven't find how to config those compulsory fields (those not allow null). It seems even if I leave everything null it still works. – ppLily Jun 12 '14 at 1:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.