Return to Statement


List Example

This example demonstrates the use of all six parts list statements: ADDPL, EDITPL, REMVPL, PLMODE, PLNOTE, and PLOUT.

The existing parts list for a bolt assembly drawing is shown in the figure below.

BOLT Assembly Drawing and Parts List

The following fields are currently specified in the parts list format:

CALLOUT - NORMAL FIELD
PART NO. - KEY FIELD 1
PART NAME - KEY FIELD 2
QTY - QUANTITY FIELD

In the current parts list format, the parts list is sorted alphabetically on the PART NAME field. The callouts are numeric, and the header is set below. Boxes are set to OFF.

Interactively select the parts to add to the parts list and to position the regenerated note on the drawing. The program also removes the row containing 'PAINT' and edits the part number for 'RING'.

The parts list modes are set as follows: sorted numerically on the 'PART NO.' field, with alphabetical callouts, boxes set ON, header above, ID symbols set to automatic update, and a line space factor of 1.5. The formatted parts list is then output to the current listing device.

$$
$$ Declarations
$$
ENTITY/ENT(100)
REJ:
$$
$$ Select Objects
$$
IDENT/'PICK ENTITIES TO ADD',ENT,CNT,K,RESP
JUMP/REJ:,TERM:,,RESP
$$
$$ Add Object to Plist
$$
ADDPL/ENT(1..K)
$$
$$ Remove Row
$$
REMVPL/'000351-9','PAINT',' '
$$
$$ Edit Row
$$
EDITPL/'06223-2','RING',' ',2,'06223-1'
$$
$$ Set Modes
$$
PLMODE/2,3,1,1,0,1,1.5
L10:
$$
$$ Select Note Location
$$
GPOS/'PICK NOTE LOCATION',X,Y,Z,RESP
JUMP/L10:,TERM:,,,,RESP
$$
$$ Regenerates Note
$$
PLNOTE/X,Y
$$
$$ Print to List. Dev.
$$
PLOUT
JUMP/TERM:
TERM:HALT

Assembly Drawing and Parts List after Running Example Program