DRAW Reference Manual
Intelligent Text
: Transforming Position/Direction Data
Transforming Position/Direction Data
If qualified by a transform keyword, position and direction attributes will be reported in the coordinate system of the specified element. The qualifier may be used with any position or direction codeword, including those for p-points, P-lines and Structural derived attributes.
The qualifier uses the keyword WRT (‘with respect to’) to denote the coordinate system to be used. Lower case as wrt is also allowed; minimum abbreviation is W (or w).
WRT must be followed by a single parameter to define the coordinate system required. This parameter may be a word or name that specifies a Design element.
If a name is used, it must not contain the comma (,) or closed angle-bracket (>) characters. For example:
#P1POS<WRT /1201A>
This will output the position of p-point 1 of the DDNM element with respect to element /1201A. The word parameter may either define an element type or a reference attribute, for example:
#POS<WRT ZONE>
#POSU<WRT OWNE>
If an element type is specified, it must refer to an owner of the Design element specified in the DDNM attribute. This may be the immediate owner or an element in the database hierarchy above the DDNM element.
If a reference attribute is specified, it should refer to a reference attribute of the DDNM element, for example OWNE or CREF. The reference attribute may also be a UDA
<WRT OWNE>
<WRT HREF>
<WRT :
uda
>
Individual components of reference array attributes may also be used:
<WRT CRFA[3]>
<WRT :UDARR[2]>
The default coordinate system is the Design World - i.e. the implied syntax is:
<WRT WORL>
The qualifier ‘CE’ must be used to refer to the coordinate system of the current element. For example, to report the position of P3 of a Box with respect to the Box origin:
#P3POS<WRT CE>
Only position, direction, displacement and orientation codewords may have transform qualifiers. This includes some P-line and p-point attributes.
When outputting a qualified position in +/- format, the ‘+’ must appear before the qualifier, for example:
#P1POSU+<WRT /DATUM>
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.