Read models and diagrams in other Visual Studio editions

When you open a model in a version of Visual Studio that does not support model creation, the model opens in read-only mode. In this mode, you can change the layout of the diagrams, but you cannot change the model.

To see which versions of Visual Studio support model creation, see Version support for architecture and modeling tools.

Obtaining Access to a Model and Diagrams

To read a dependency diagram, you must first use Visual Studio to open the modeling project, and then open the diagram within it.

For this reason, if you want to read a dependency diagram, you must also have access to the modeling project in which it was created. You can do this either by accessing the project from source control, or by obtaining a copy of the project files.

Note

This does not apply to code maps and .NET class diagrams generated from code. Those diagrams can be viewed independently of a modeling project.

To read a dependency diagram, the minimum set of files that you need is as follows:

  • The two diagram files for the diagram that you want to read, for example, MyDiagram.classdiagram and MyDiagram.classdiagram.layout.

    Note

    For dependency diagrams, you should also have the file that is named MyDiagram.layerdiagram.suppressions.

  • The modeling project file (MyModel.modelproj)

  • The root model file (ModelDefinition\MyModel.uml)

  • The package files for any package referenced in the diagram (ModelDefinition\MyPackage.uml)

Changes that you can Make in Read-Only Mode

If you open a model and its diagrams in a version of Visual Studio that does not support model creation, you cannot change the model. That is, you cannot change the elements and relationships that are displayed on the diagrams or in the model explorer. However, you can make some changes to the layout of the diagrams:

  • Rearrange the shapes and connectors on the diagram.

  • Expand and collapse shapes.

You can save these changes. If you want to make your changes visible to other users, you must at least send the updated .layout files.