Hi @mfoster9TD82. It looks to me like you are using VBA here, so I'll provide a VBA code as a possible solution. Finding 'named' entities from a VBA macro requires more work and complication that finding them from an iLogic rule, but it can still be done a couple ways. Since I don't know what version of Inventor you are using, I will stick to the older way of doing it, just to be sure (finding them by their attributes directly). The AttributeSet.Name will be "iLogicEntityNameSet", and the Attribute.Name will be "iLogicEntityName", and the Attribute.ValueType will be 'kStringType', so the Attribute.Value will be a String (the name you gave the face). Here is one way of finding them for your situation. Since you mentioned that they were Face objects, I am not checking what type of objects they are ahead of time, and I am also not checking whether they are Planar faces, because I assume we don't need to in this case.
Sub ModelSub()
' Set a reference to the active document.
Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument
' Set a reference to the component definition.
Dim oDef As PartComponentDefinition
Set oDef = oDoc.ComponentDefinition
Dim oTopFace As Face
Dim oBottomFace As Face
Dim oSet1 As ObjectCollection
Dim oSet2 As ObjectCollection
Set oSet1 = oDoc.AttributeManager.FindObjects("iLogicEntityNameSet", "iLogicEntityName", "TOP")
Set oSet2 = oDoc.AttributeManager.FindObjects("iLogicEntityNameSet", "iLogicEntityName", "BOTTOM")
If oSet1.Count > 0 Then
Set oTopFace = oSet1.Item(1)
End If
If oSet2.Count > 0 Then
Set oBottomFace = oSet2.Item(1)
End If
'create midplane
Dim oPlane As WorkPlane
If oTopFace Is Nothing Or oBottomFace Is Nothing Then Exit Sub
Set oPlane = oDef.WorkPlanes.AddByTwoPlanes(oTopFace, oBottomFace)
End Sub
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.
If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡 or you can Explore My CONTRIBUTIONS
Wesley Crihfield

(Not an Autodesk Employee)