The PowerDesigner plug-in for Visual Studio enhances the standard PowerDesigner code generation and reverse-engineering to permit real-time synchronization of model and code.
You configure synchronization initially through the Synchronization Wizard, and then can continue with development, with additional changes automatically cascaded to the code.
Note that code synchronization is available for all PowerDesigner diagrams and models supporting generic generation, and thus could be used with, for example, a state diagram, or a BPM (Business Process Model).
Select the file types that you want to synchronize for forward generation.
This page, which is available only for C# and Visual Basic projects only) allows you to specify file types that will be synchronized for reverse-engineering (i.e. changes made in the code files will be cascaded up immediately to the model objects).
Select the file types that you want to synchronize for reverse-engineering.
This page allows you to specify the specific files that will be synchronized, and where they will be generated.
If the model is located directly in a solution folder (outside of a project) or in a modeling project, the files are generated at the root of the solution, and project files are added as projects in the Solution Explorer.
If the model belongs to any other project type, the files are generated by default at the root of the project, or in another folder within the project specified in the Root Folder field.
If there is the possibility of a conflict because both model object and file already exist, the file will not be selected to generate by default, and its checkbox will carry a small red cross. To force synchronization and specify who will have priority, click the checkbox and select Overwrite file or Overwrite model from the contextual menu. You can also click Select All select all the files for overwriting.
The wizard generates and marks as synchronized all the specified files.