Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

scrollbar

Exercise outline

The goal of this exercise is to add a Ribbon button for volume models. As a result, it should be possible to configure the input data of volume models in just a couple of clicks.

Create a new gui command

Add a new folder named Commands to the plugin project named Commands. In Inside this folder, create a new class named AddInputDataToVolumeModelCommand.cs and adapt the contents as shown below.

...



Then create a new volume model item (right click on project | Add | New Model ...), click the volume Ribbon button and, sequentially, select the previously downloaded WaterML2 XML file and shape files in the file selection dialogs.
Afterwards, verify that the input data has been correctly added to the volume model by opening the data views or by running the model:

 

scrollbar