Menu and Toolbar for Plugin

Hi VP Team, Please can you give me a example of a plugin and toolbar within it. So if I want something like Tools in the VP menu and within that I need a option like “Publish Properties”.

When I try the examples here - https://www.visual-paradigm.com/support/documents/pluginuserguide/2186/2188/57181_implementing.html they do not work and if I remove menuPath attribute then it appears under the default ‘Plugin’ tab

Need a example that can create MyTools and within that “MyAction” for example similar to Tools > “Publish Properties”

Hi lalitnagpal,

Thank you for your post. I have forwarded your question to our engineering team and will post again when there is an answer.

Best regards,
Jick Yeung

Dear lalitnagpal,

In the plugin xml, please define something like:

<plugin


<toolbar …>
<action ribbonPath=“Tools/PublishProject” … >

This will show a button under the “Tools” tab, and after the Project Publisher button.

Bes regards,
Jick Yeung

Hi Jick,

Thanks for your response. So that helps me place a button in a existing ribbonPath.

Following are some queries please
a) I wasn’t sure why we have <toolbar… in your response when we are providing a existing path using ribbonPath=“Tools/PublishProject”. Is it when we want our own option instead of Tools for example.

b) How can I create MyTools similar to Tools. A full syntax would be wonderful please.

Thanks a lot.

Dear lalitnagpal,

Our engineers have prepared a sample plugin for you as reference. Please visit the following URL, download the plugin and take a look at the code.

Hope this helps. Please feel free to let us know if you have any questions.

Best regards,
Jick Yeung

1 Like

Wonderful, thank you so much guys, loved this.