To associate windows and doors with the correct rooms, modify their families to enable the Room Calculation Point and modify the From Path and To Path locations.
Mode panel 
Edit Family. 

flip control at the center of the From/To Path to reorient the direction. 
Family Editor panel 
Load into Project.