Well, I have good news and I have bad news
The good news is that I did it and it was a lot of fun. My plugin can easily transform this:
(what a mess!
… into this:
The best part is that my plugin does not contain any pre-determined values. Which means that it will fully honor any formatting defaults specified by your project and it can be used on any diagram type you want. So for example: in my UML diagrams any note models have a gradient cyan color. By default this is plain cyan. So if I were to use this plugin on an UML diagram with a weird formatting then it will reset the note back to the gradient color scheme.
But for someone who uses the default color scheme the plugin would change the formatting into that (the default cyan setup).
Now, I won’t bore you with Java code and all (but code is included with the plugin, it’s fully open source ) but considering we’re all Visual Paradigm users I obviously can’t resist sharing this to explain the general plugins inner workings:
The plugin is called ResetFormat.zip and can be downloaded here (from my puush repository).
Installation is very easy:
- Start Visual Paradigm and open the ‘Help’ tab.
- Click “Install Plugin” and select “Install from a zip of plugin” and click Next.
- Point to the zip file you downloaded.
The plugin will get installed to %appdata%\VisualParadigm\Plugin and becomes active once you restarted VP. You’ll notice it being active when the ‘Plugin’ tab appears (that’s also where you’ll find the option to click) but it will also announce itself in your VP log.
There’s one caveat I’m still working on: when used something within VP triggers a NullPointerException (not the plugin itself) and that can cause some garbage in your vp logfile. I’m still trying to find out what’s causing it but I’ll probably ask VP for help. Even so, other than that this plugin is fully usable.
Hope this will be useful for you