PDMS Syntax
PDMS Syntax
In principle, any attribute can be set by specifying the attribute name and value you want it to
take. The following are examples:
Navigation
N.P.TODKAR (ANANT)
9967479134
Setting PDMS attributes
NOTE: NEXT and PREV commands work on the list according to the modes Forwards or
Backwards. In backwards mode, the list is considered to be reversed so these commands
have the effect of working from the opposite end of the list.
Query Commands
Q POS IN SITE (or Q POS WRT SITE) Query the position of the current element
relative to the site position
NOTE: Normally, the Q POS command gives the position relative to the element's
owner.
ELBO 2 OF /P1/B1
N.P.TODKAR (ANANT)
9967479134
Setting PDMS attributes
Positioning Commands (General)
Move syntax
Position>Move>Distance
Moves the element’s origin by a given distance in a given direction.
Ex. MOVE N DIST 10’ MOVE S WRT /* DIST 5' MOVE E IN SITE DIST 5'
Position>Move>Through
Moves the origin of the element in a given direction through a Reference Plane perpendicular to the line
of travel that is passing through a picked element, p-point, or coordinate.
Ex. MOVE N THRO ID@ MOVE N THRO IDP@ MOVE N THRO N46’
Position>Move>Clearance
N.P.TODKAR (ANANT)
9967479134
Setting PDMS attributes
Moves the element’s origin, p-point, or obstruction in a given direction with a clearance from another
item’s origin, p-point, or obstruction
.
Ex. MOVE E DIST 10’ FROM /P-101 MOVE E CLEARANCE 10’ FROM /P-101
The options INFRONT, BEHIND, ONTO, and UNDER refer to a picked or named item’s physical
obstruction, while the TO and FROM options refer to the item’s origin. INFRONT and TO refer to
the near side while BEHIND and FROM refer to the far side of an item.
Position>Plane Move>Through
Moves the origin of the element in a given direction through a Reference Plane specified by the user
that is passing through a picked element, p-point, or coordinate.
NOTE: All the above commands can be used with piping components for exact positioning.
The following commands are specific to piping because they use the implied direction of the
previous component to determine the position. This implied direction is some times referred
to as the constrained centreline and is simply a line drawn in the direction of the previous
component. All of the following commands will move components along this line.
DIST 300 Position the current element 300mm away from the previous
component. The direction is taken as the leave direction of the
previous component.
CLEAR 400 Position the current element with a clearance of 400m between it and
the previous element. For most types of component, this command
gives a tube spool length equal to the clearance value. For some
components such as level operated valves the clearance is likely to
take the lever length as the obstruction length of the valve, so in this
case the clearance might be more unpredictable.
THRO N500
Position the origin of the CE along constrained centerline through
TO N500 N500 in ZONE coordinates.
THRO PT Position the origin of the CE along constrained centerline at the point
where it intersects a perpendicular plane positioned at the branch tail.
Position the arrive point at the leave point of the previous component
CONNect and orientate the component to suit.
N.P.TODKAR (ANANT)
9967479134
Setting PDMS attributes
ORI Y IS N AND Z IS U This is the default orientation (wrt owner) for all elements
that have an orientation attribute.
ORI Y IS E45N Specify that the Y axis is pointing E45N. When only one
axis is specified, the other tries to get to it's default, so in
this case, Z will default to UP.
ORI AND P3 IS U Used for valves, tees, etc., this command performs an ori and
then points the ppoint in the required direction. It does not
change the angle.
N.P.TODKAR (ANANT)
9967479134
Setting PDMS attributes
Creating Elements
NEW EQUI /T-1101 Create EQUI element and set the name attribute
NEW ELBO CHOOSE For piping components, you need to create the element
and then link it to the catalogue via the spref attribute. The
CHOOSE command allows you to select components from
the specification by picking them from a displayed menu.
CHOOSE ALL Allows you to see more detail about the component than
CHOOSE on it's own.
Deleting Elements
DELETE BRAN MEM This deletes the members of an element (i.e. BRAN in this
example) without deleting the element itself.
PSEUDO ATTRIBUTES
In order to get specific information directly from the database, a number of keyword or pseudo
attributes have been introduced. Pseudo attributes are not attributes as such, but they have
the ability to extract data when queried. For Example
N.P.TODKAR (ANANT)
9967479134
Setting PDMS attributes
Q DTXR Query the rtext of the detref of the spref_ can also use dtxs or dtxt
Q MTXX Query the xtext of the matref of the spref _ can also use mtxy or mtxz
Q PSATTS Query the list of pseudo attributes available for the CE.
General Queries
Q LIST Query what you can create below the current element
Q PROP DESC Query the data element with the dkey equal to DESC in the
component's dataset (Steelwork and Piping elements)
Piping Attributes
N.P.TODKAR (ANANT)
9967479134
Setting PDMS attributes
Q ITLE Query the length of implied tube (must navigate first by using
'IL TUBE' at a component)
At Branch Level
Steelwork
N.P.TODKAR (ANANT)
9967479134
Setting PDMS attributes
Q POS PPLINE TOS START WRT /* Query TOS of current element (SCTN)
Q PPLINE TOS DIR Query the direction of the TOS pline on a SCTN
The construct syntax is described more fully in the Design reference manual and it is worth
looking at it in more detail. CONST allows distances and angles to be calculated from the
design data and is invaluable when you are writing applications. For example
Q EVAR PDMSUSER Query the operating system location of user file directory PDMSUSER
Reporting Syntax
You can create an array which includes a number of elements which all satisfy specific
selection criteria, as defined by yourself. The syntax is:
N.P.TODKAR (ANANT)
9967479134
Setting PDMS attributes
!Array is the name of the array that will be created to contain the elements selected.
This would create the array !PIPECOMPS and set it to contain the reference numbers of every
piping component in the MDB. Logical expressions use the WITH and WHERE option; a
volume is defined by the WITHIN keyword; and the hierarchy criteria is defined by the FOR
keyword.
Using the facilities described here you can create an expression and have it evaluated for all
elements which satisfy particular selection criteria. The results of the expression are then
placed in a named array.
(expression) is the expression that will be carried out for all elements that match the select
criteria
As you can see, there are a lot of commands available to the PDMS user and the list above is
only scratching the surface. Almost all of the command syntax is described in the reference
manuals but in some cases you might find it difficult to compose the required command from
these alone. In these cases, it might be necessary to build a command by using the query
syntax itself, using $Q and $H syntax.
N.P.TODKAR (ANANT)
9967479134
Setting PDMS attributes
The command: $Q gives a list of all possible commands at any one time. On it's own, $Q gives
a complete list of top level commands in any PDMS module. When applied in the middle of a
command line, it lists the options available at that point.
Each of the words in quotes can be used at this point. There may be further options after these
words and the same technique can be used to find the way through. The characters before the
'/' indicate the minimum abbreviation which may be used for each part of the command. The
presence of the Newline keyword without the quotes indicates that the return key may be
pressed at this point and the command is executed.
Another form of syntax querying is the $H command. $H is a slightly more sophisticated form
of $Q, which lists the available options numerically as the following example shows:
SETUP $H
SETUP $H1
'FORM'
SETUP FORM $H
UNAME
And so on.
N.P.TODKAR (ANANT)
9967479134