If you need to create hexahedron primitive in Paragon module, as a part of you detail.
And you don`t wont to waste your time its good idea to write simple macro.
Sample in attachment
Just navigate to Category or Geometry set of your category and insert this script into your CommandWindow :
PCF is the file that can be used to calculate of heat tracing, there are few methods to generate it from pdms – use isodraft or use form that below .
Here is the form, that can export pipes from AVEVA PDMS to PCF.
1. Extract the caesariipcf.pmlfrm to PMLLIB folder
2. Go to design module and type in command line PML REHASH ALL
3. Run the macro by typing show!!caesariipcf in Design module.
4. Select the pipe you want to export. Press the Add CE button on the form
5. The form will add all branches in the pipe. You may add more that 1 pipe. Select only the branches you want to extract. Make sure they are highlighted.
6. Press the Export button
7. The output file will be stored at %pdmswk%\CaesarPCF\ folder. The name of the file will be corresponding to the branch name. 1 file for each branch.
This post was taken from https://pdmsmacro.wordpress.com
Initial conditions of the code suggests that, depending on the specific parameters will be carried out one or another part of the program.
The basic syntax is:
if (condition) then
— Code executed when the condition
— If the conditions are not met, the code also will not be executed
Implementation of action depending on the type of the current element
— If the type of the current element is VALV, then
if (!!CE.Type EQ ‘VALV’) then
— Write to the variable var type of the current element and its name in the form!
!var = !!CE.Type + ‘ – ‘ + !!CE.Name
— Derive the resulting value
This post was taken from blog http://pmlinpdms.blogspot.com/
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
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
Sometimes we need to run such commands inside our code, in methods of our forms or from uic menu.
I recomend to use such method:
!!runsynonym(‘CALLG RSPECS PIPING _uspecselements_pipeSpecList’)
–This code will fill pipeSpecList list for form !!uspecselements
Sometime we need to include a big amount of elements into some explorer position, with such customization we can do it.
Just copy this files to PDMSUI\clib\files\ (d:\AVEVA\Plant\PDMS12.1.SP4\PDMSUI\clib\files\)
Dont forget to make Backup of your files (PDMSUI\clib\files\ ) in that directory!!
To scale up and down equipment use this attached zip, written by Wilfried Ritter. Continue reading Aveva.Pdms.Design.Scale Equipment