Doors and windows are each placed in an opening in the wall. Each opening can be identified in an IFC viewer. Revit automatically creates an opening in a wall when writing the BIM model to IFC. If the BIM model is created in a non-standard way, it is possible for the door or window to not have an associated opening, in which case the door or windows cannot be associated with the relevant wall.