"Display the attribute dialog before storing new features" bypasses FeatureInspector

601
1
07-02-2010 03:19 AM
by Anonymous User
Not applicable
Original User: r_pankevicius

Hi,

If the user set in Editing Options (accessed from standard Editor toolbar) in Attributes tab that he/she wants to "Display the attribute dialog before storing new features" ArcMap displays standard ArcMap attribute window in a modal dialog.

If target feature class has a class extension registered and implemented IObjectInspector control the expected bahaviour is a customized attributes dialog, not a standard one. It's inconsistent as user sees customized attributes page for existing features but a standard one for new features.

See attached picture: 2 different attributes windows are shown at the same time: point with OBJECTID=2 is shown using Attributes toolbar button (modeless customized dialog).  point with OBJECTID=3 is popped up after user just created a new point using Sketch tool.

I reproduced this by using Tabbed feature inspector C# sample: http://edndoc.esri.com/arcobjects/9.2/NET/FBB894AD-16DF-4FAD-82F6-F0CA13B5BE7D.htm

Data file with point feature class with correct class extension is attached (TfiSample.gdb.zip) so you can delete AddEXTCLSID command from solution.

Anyone knows how to solve this problem?

Platform: ArcMap 9.3, WinXP. (But works same odd way on ArcGIS 10 too.)
0 Kudos
1 Reply
by Anonymous User
Not applicable
Original User: r_pankevicius

PS. ESRI support suggested to implement additional interface IExtendedObjectInspector. This worked to solve the problem. I love that ArcObjects wood of interfaces 🙂
0 Kudos