Category Archives: tutorial

Aveva. PML BASICS. Strings

Some techniques for working with string variables.

Initial string variable:

!stringVar = ‘Wedge gate valve with rising stem # 30c41nzh / 30nzh41nzh

Example 1: Separation of part to a certain character or expression

!resultVar = !stringVar.Before(‘#’)

As a result, the variable !resultVar written to ‘Wedge gate valve with rising stem’, that is something that is up to the value specified as a parameter to the method.

Used method .Before(‘DELIMITER’)
NB: spaces are also considered Continue reading Aveva. PML BASICS. Strings

Aveva. Admin. Reconfig DB with cross-references

Sometimes happens that we need to change DB number to other DB number. But what should we do with cross-references? Use the method that is described below and there will be no problems.

This is for experienced PDMS admins, anyway make backup before this steps!!!

If the contents of more than one DB are to be transferred, provided no reference attributes point outside the set of DBs being transferred, an extension of the same procedure could be used. Consider the transfer of the whole of one Design DB, the whole of a Catalogue DB and one item of equipment from a second Design DB, thus:

Continue reading Aveva. Admin. Reconfig DB with cross-references

Notepad++ Plugins For Easy Development

There are many available plugins, but, of course, we’ll not use all of these, so here’s some selected plugins that should be known by developers.

1. IndentByFold

IndentByFold is an auto indent plug-in for Notepad++ based on the language folding level.

indenta

indentb

2. QuickText

Quicktext is a Notepad++ plugin for text substitution with multi field inputs. It’s similar to Tab Triggers in TextMate, Resharper/CodeRush in Visual Studio. PLEASE UPDATE Notepad++ v5.4.4 if QuickText isn’t functional.

Continue reading Notepad++ Plugins For Easy Development