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:
- You don't have to put the
plantuml.jar
file in the same directory as your document.
- 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.
- 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:
- In the same directory as your document
- Then, in the parent directory of this directory
- Then, in the parent directory of the parent... up to the root folder
- Then, in the same directory as the
normal.dot
file
- Then, in the parent directory of this directory
- 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:
- Make a copy of your document
- Zip this copy
- Send this zip file by email to yourself :-)
- Invoke the VBA editor with ALT-F11
- Remove the existing Module1 (right-click with the mouse, remove)
- Import the new Macro
- Launch the RemoveOldVersionPlantUMLSyles macro:
This will simply delete the old style, and create the new button bar,
and regenerate all images
- Your images will be present twice: this is normal
- Delete all diagrams images
- Click on "UML.*"
- Finished!