Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
WCrihfield
in reply to: ndillner343SKL

Hi @ndillner343SKL.  One thing you could try would be to use 'Is' instead of '=', then just compare the Face object directly to the Entity object.

For example:

If face Is Entity

The next thing you could try, if it is a Face, is the Face.IntenalName property.  If those two match, then you have the same Face.  However, the Edge object does not have an 'InternalName' property, so it would not work for all possible types of entities.  Beyond that, the next step is a bit more complex, but you could try using the GetReferenceKey method, which all 3 usual objects (Face, Edge, Vertex) have.  Then you would also need to work with the Document.ReferenceKeyManager object, and its methods to compare the two results.  I have not used that process that much, but you can find examples of its use here on this forum.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)