Another idea is to create some kind of blocker part, you put it where you don't want the doors. This part has two attachment points and should somehow have zero thickness so that habs can connect despite that part. Or this part could indicate where you actually want the door to be, but my guess that restricting part mechanic will be easier to do.