DRAW Reference Manual
Labels
:
Special Labels and Label Templates
: SLAB Leaderline Connection Points
SLAB Leaderline Connection Points
The leaderline connection point for SLABs is determined by the setting of its CPOF attribute. The default is STANDARD, which causes DRAW to determine the actual leaderline connection point. Generally, when the SLAB references a SYTM, this is at its origin. However if the first member of the SYTM’s list is:
•
A CIRC primitive, and the SLAB is drawn undistorted (for example, its XYSC values are equal) then the leaderline terminates at the CIRC.
•
An ELLI primitive, then the leaderline terminates at the ELLI.
•
A RECT primitive, then the leaderline terminates at the nearest corner of the RECT.
•
A TEXP primitive, then the leaderline terminates at the nearest corner of the text box, as occurs with GLABS.
The CPOF attribute can be set explicitly or by using the LEADERLINE CONNECTION syntax. For example:
LEAD CONN @
allows the point to be defined by cursor
LEAD CONN X30 Y35
allows an explicit Sheet position to be specified
LEAD CONN OFFS X10 Y-10
allows a relative position to be specified
LEAD CONN STAN
resets CPOF to its default value
LEAD CONN ORIG
sets CPOF to 0,0
The last three examples are equivalent to:
CPOF 10 -10
CPOF STAN
CPOF ORIG
The values stored in CPOF define the coordinates of the connection point relative to the template’s origin and they are in the axis system of the template. Hence if the SLAB’s orientation is changed the connection point rotates with it.
For SLABs defined by a SYTM having a TEXP as its first member the leader-line terminates at the appropriate corner of the text box (as occurs with GLABs) unless the SLAB’s CPOF attribute defines a specific leader-line connection point.
Note:
The CPOF attribute for a SLAB is an offset from the Label origin. For a SLAB that references a TXTM, this is defined by the JUST and ALIG attributes of the TXTM. Hence if the JUST or ALIG components of a TXTM are modified the leaderline is connected to a different part of the Label.
The selection system makes it possible to do a global change on the CPOF attribute of all SLABS that use a given TXTM, using a macro, for example:
VAR !A COLLECT ALL SLAB WITH (TMRF EQ
template_id
)
FOR SHEE
DO !B VALUES !A
$!B
CPOF -5 10
ENDDO
Note:
Where the CPOF setting defines an offset from the new Label origin and
template_id
is the TXTM name (which must be followed by a space).
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.