This document is archived and information here might be outdated.  Recommended version.


ITinEditErrorLog.CurrentObjectID Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITinEditErrorLog Interface > ITinEditErrorLog.CurrentObjectID Property
ArcGIS Developer Help

ITinEditErrorLog.CurrentObjectID Property

ID of the shape to be added/edited.

[Visual Basic .NET]
Public Property CurrentObjectID As Integer
[C#]
public int CurrentObjectID {get; set;}
[C++]
HRESULT get_CurrentObjectID(
  long pID
);
[C++]
HRESULT put_CurrentObjectID(
  System.Int32* pID
);
[C++]
Parameters
pID [in]

pID is a parameter of type long pID [out, retval]
pID is a parameter of type long*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The ID of geometry associated with a triangulation error. You can set this value to be anything meaningful to you like the OID of a feature or the iteration number of a loop.

If you're adding shapes with ITinEdit.AddShape or ITinEdit.AddShapeZ and an error is raised with a code of:

E_TIN_INTERNAL_ERROR

some form of error was encountered during triangulation. In the rare case an error occurs, it's usually failure to enforce some part of a breakline. In your error handler you can trap for this error code, record the source of geometry in the CurrentObjectClass property (e.g. featureclass name), along with an ID code in CurrentObjectID (e.g. OID), and continue on.

At the end of the edit session your code can check EditErrorCount and if errors exist call SaveEditErrorLog to persist the information to a log file on disk. The ObjectClass and ObjectID you recorded for each instance of an error will be written out along with coordinates identifying the problem locations.

See Also

ITinEditErrorLog Interface