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


ITinEditErrorLog.CurrentObjectClassName Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

ITinEditErrorLog.CurrentObjectClassName Property

Name representing a group of shapes to be added/edited.

[Visual Basic .NET]
Public Property CurrentObjectClassName As String
[C#]
public string CurrentObjectClassName {get; set;}
[C++]
HRESULT get_CurrentObjectClassName(
  BSTR* pName
);
[C++]
HRESULT put_CurrentObjectClassName(
  BSTR pName
);
[C++]

Parameters pName [out, retval] pName is a parameter of type BSTR pName [in] pName is a parameter of type BSTR

Product Availability

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

Description

The ObjectClass of geometry associated with a triangulation error. You can set this value to be anything meaningful to you like the name of the source featureclass of the geometry.

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