Below is the colour code in PDMS. note that the colour code is different from Review colour code.
Tag Archives: basic pml programming
Macro to Calculate Dia Inch
Here is the macro to extract the DIAINCH report from model for piping zone. I have prepared and attached the detail procedure for DIAINCH reporting and sorting to order
Download macro
Read how to use it here
Utility to add within volume
try this program…
Download here
add volume macro (work in mm units)
you can select what to add, what to ignore, visibility, colour..etc.read manual
Transfer from AutoCAD to PDMS Design
Download macro for creating line from AutoCAD here
1.in acad load pdms_line.vlx (select only line’s)
2.in pdms in command line $M….
PML Basics Part 2 (Creating an Array)
What is an Array?
The simple answer to me would be a collection.
How to create an Array
!Array = Array()
This is an empty variable but it has been defined as an array
Adding to the array
Type 1
!Array[1] = ‘BOB’
!Array[2] = ‘GEORGE’
!Array[3] = ‘KELLY’
Type 2
!Array.Append(‘BOB’)
!Array.Append(‘GEORGE’)
!Array.Append(‘KELLY’)
q var !Array
PML Basic Part 1
To start out, I wanted to introduce the Dollar $ symbol and its meanings
$M = Runs a macro in pdms
$! = Evaluate a varieble
$. = Terminates a macro
$S = Defines a synonym
$G = Defines a global synonym
$S- = Turns synonyms off
$S+ = Turns synonyms On
$QS = Queary’s the synonyms
$H = Help
$Q = Another syntax help
$P = Prints a line to your command line
$$ = Adds a $ symbol
$D = Default argument value