Source file for a specific Form & gadget

 
  • I need to find a way to locate the support file for a custom (menu) form in AVEVA so I can see the commands and syntax used  to enable me to write a macro based on those commands. The form i need to see sets the vlayer, linetype and colour so the next element selected inherits those attributes.

    Does anyone know how I can do that?

    I?m trying to create a button that sets the Vlayer, linetype and color and then executed the ?line? command.
  • To first find the name of all open forms you can run the command

    Q var !!fmfys.shownforms()


    You will then get a list of all the forms that are currently shown - all PML forms, that is, you will not be able to see any C# forms with this command. If you can figure out which of the names listed is your form then take that name and run the following command:

    !!pmldefinition(?name_of_your_form?) e.g. !!pmldefinition(?gphsettings?)

    The above command lists any PML element with the name that you ask for, forms, objects, functions and commands including the path to them.
  • I think you could achieve this by setting up and using a visual style; on the ADMIN tab there is a button called "Label" in the "Visual Styles" group. Click that and you'll be presented with a form to set these attributes. What you do then is you set the visual style on the sheet and then any label you create on that sheet will have the settings you set in the visual style.
    I am not sure but I assume that when you say "line" command you mean enter, is that correct? If not, what do you
    In case you still want to do it using a macro the attribute the name of the attribute to set the line style of the leader line is LLstyle.