Diagrams User Guide

Diagrams : Appendices : Diagrams API : Adding Custom Calls to Addin Functions Shape’s Context Menu : Command Execute
class DiagramsAPICommand : Command
internal DiagramsAPICommand()
this.Key = "TEST_DIAGRAM_API_CMD";
public void Execute(Shape shape)
MessageBox.Show(string.Format("The shape: {0} was clicked!", shape.Name));
public override void Execute()
The Action cell formula can be set up to call both versions. To call Execute without a parameter would look like below;
To call Execute with the parameter param=shape added to the formula would look like below;
Note:
The command has to be registered in Aveva.ApplicationFramework.Presentation.CommandManager

1974 to current year. AVEVA Solutions Limited and its subsidiaries. All rights reserved.
AVEVA Logo