To restrict the diagram to related objects in the current project, choose View > Exclude Objects Outside Project. Otherwise, all related workspace objects are included in the diagram.