Up a level to IAcSmObjectId      
IAcSmObjectId.IsEqual Method

Compares one IAcSmObjectId with another IAcSmObjectId object, and returns True if both objects reference the same component.

Syntax

IsEqual(

pId As IAcSmObjectId) As Boolean

pId Input IAcSmObjectId for comparison
   Comments?