Diagrams
User Guide
Diagrams
:
Appendices
:
Diagrams API
: Adding Custom Calls to Addin Functions Shape’s Context Menu
Adding Custom Calls to Addin Functions Shape’s Context Menu
It is possible to add a custom context menu option and call the Execute() method from any registered Command class or call a PML function.
To achieve this, the shapesheet of the master shape that is representing an item has to be edited in Visio. There, the
Action
section has to be updated with custom rows
Figure A:1.: Edit master shape in Visio and add own action rows in shape sheet
. This will result in all shapes based on this master having an additional context menu
Figure A:2.: Additional context menu items
.
Figure A:1.
E
dit master shape in Visio and add own action rows in shape sheet
Figure A:2.
Additional context menu items
This mechanism is based on the Visio function QUEUEMARKEREVENT. This requires proper parameters that will be parsed when QueueMarkerEvent will be handled by the Diagrams application. According to parameters, the PML function or Command.Execute() will be called.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.