This sample extends Visual Studio Ultimate. It lets users align shapes neatly on a UML diagram. If you hold the shift key, it will also make the widths uniform.

For example: Align a vertical set of shapes:

Align a horizontal set of shapes:

 

Result:

Adjusting widths - hold the shift key while selecting Align and Resize:

Result:

 

Installing the Sample

  1. You must have:
    • Visual Studio 2010 Ultimate
    • Visual Studio SDK
  2. Download, unzip, and open the sample in Visual Studio.
  3. Press F5 to build the sample and start an experimental instance of Visual Studio.
  4. In the experimental instance, open a modeling project and experiment with model diagrams.
  5. To install the command on your computer or another computer that has Visual Studio Ultimate, copy bin\Debug\AlignCommand.vsix to the target computer; double-click it. To uninstall, use Tools>Extensions Manager in Visual Studio.

What this sample demonstrates

Discussion and Questions

Please post suggestions and questions on the Visualization and Modeling SDK Forum.

Related samples