Hi @arnoldQ3YQQ. I believe that named entities only exist in Part type documents right now, so you won't find them directly within any assembly. Also, nothing 'real' actually exists within assemblies. Just work features an proxy data. All the 'real' geometry is within the Part files themselves. If you want to retrieve a face within an assembly that you named within a part, you will have to go through a round about process of defining a FaceProxy (a copy of the Face that exists only in the assembly model space) of the actual Face, then use that FaceProxy instead of the real one for things like constraints, measurements, and similar functionality within the assembly.
There are a few ways to get the named entities from a part too.
One way is using 'ThisDoc.NamedEntities' like you were using. But beware using that line, because you may not be aware of what actual document it is trying to retrieve those named entities from. The term ThisDoc will default to pointing to the 'local' document (the same document that the rule is saved within if it is a local rule) first, and if there is no 'local' document (like when you are using an external rule), it will then target whichever document was 'active' when the rule first started.
example:
oNEs = ThisDoc.NamedEntities
Another way is like this: (which allows you to specify a Document for it to target)
oNEs = iLogicVb.Automation.GetNamedEntities(oDoc)
(Where the variable 'oDoc' has had its value set to a Document or PartDocument)
The other way is to search for them using the AttributeManager, and the methods defined under it to find all the AttributeSets within a PartDocument with that certain, specific name ("iLogicEntityNameSet"), then if those Sets contain an Attribute with a certain name ("iLogicEntityName"), then get the object that the AttributeSet was attached to. That's the older, and more labor intense way of doing it, before those iLogic snippets existed.
Wesley Crihfield

(Not an Autodesk Employee)