I am not sure I understand your use case. Would it be possible for you to upload screenshots of your diagram, the neighborhood displayed in the neighborhood view, and the result of the "Convert to Document" action? Aside from that, please tell me which version of yEd you are using.