A new beta version of the Word macro is available.

The macro has been enhanced, it seems to work fine, but this is still beta software, so please backup your documents.

The differences are:

  1. You don't have to put the plantuml.jar file in the same directory as your document.
  2. A button has been added to hide/show "P" symbol in the Word Document, as the default/existing "P" button shows also hidden UML descriptions.
  3. There are now two styles, instead of one : PlantUML for the diagram descriptions and PlantUMLImg for the generated images

PlantUML.jar file path

The first point was very annoying, since it implies to have a lot of copy of plantuml.jar on your disk.
The new macro searches the plantuml.jar file in that order:
  1. In the same directory as your document
  2. Then, in the parent directory of this directory
  3. Then, in the parent directory of the parent... up to the root folder
  4. Then, in the same directory as the normal.dot file
  5. Then, in the parent directory of this directory
  6. Then, in the parent directory of the parent... up to the root folder
If the plantuml.jar file is not found, a box display the list of all searched directories.

You can launch the ShowPlantUMLJarPath macro to know which plantuml.jar file is used.

Migration

If you have an existing document with the first version of the macro, you can migrate:
  1. Make a copy of your document
  2. Zip this copy
  3. Send this zip file by email to yourself :-)
  4. Invoke the VBA editor with ALT-F11
  5. Remove the existing Module1 (right-click with the mouse, remove)
  6. Import the new Macro
  7. Launch the RemoveOldVersionPlantUMLSyles macro:
    This will simply delete the old style, and create the new button bar, and regenerate all images
  8. Your images will be present twice: this is normal
  9. Delete all diagrams images
  10. Click on "UML.*"
  11. Finished!

Privacy Policy      Advertise