Hi everyone,
Please find attached a collection of Workspace examples. Most of these I wrote 18 months back, and some of you have managed to grab a copy of them.
So now here they are for all of you to enjoy.
Firstly the disclaimer: these are an example guide only and have no implied warranty or support from AVEVA. Before pasting this code in your own projects do the due diligence. Make sure you understand what it is doing, why it is doing it, and whether it is fit for purpose for your project.
There are likely to be a few mistakes etc. in them. I never really got the chance to polish them to perfection. I would definitely throw caution with the Popups example. I'm not sure I ever got that fully working.
As a bonus, I am giving you a PDF that is a bit of an inside guide that walks you through some of the examples. Alas, its quality is a bit dubious but it adds value when you are trying to understand someone elses work. I do not plan to refine/fix/update this document. Sorry!
So what do you get?
- How to do dynamic panes (collapse panes). Two examples.
- How to do a menu bar
- An equipment item debugger (Note I believe Bas, who is on this forum created a gold plated version of this)
- PLC Limit Editor (this type of thing was meant to be part of the product but never made it)
- Tree based Navigation
- Customising the List
- Customising the Treeview
Lastly,
Each example is a single project, requiring a single Include project called “Starter”, which is also provided in zip.
FYI: “Starter” is basically the equivalent of you doing a New Project command and selecting the SA starter project.
I’ve done it like this so it is easy for you to replace with a fresh starter project as we sometimes change the starter project via updates. If you do replace my starter project with a fresh one you will need to delete a couple of labels from it as they are overridden in the specific examples. The compiler will tell you which ones. As it will complain of duplicate labels.
When running the projects, always run the Setup Wizard and select to use “Profiles”, select the “DEFAULT” profile. This sets the project up perfectly to run.
cheers,
bradley