Return to Statement


Class Selection Example 2

This example demonstrates the use of the MASK statement to select only certain objects for deletion.

$$
$$ Declarations
$$
ENTITY/L(4),DIM1,DIM2,TXT1
L(1)=LINE/0,0,3,0
L(2)=LINE/3,0,3,2
L(3)=LINE/3,2,0,2
L(4)=LINE/0,2,0,0
DIM1=LDIM/HORZ,3,1.5,YLARGE,L(4),YLARGE,L(2)
DIM2=LDIM/VERT,4,1,XLARGE,L(1),XLARGE,L(3)
TXT1=NOTE/2,-2,'VIEW A'
MASK/26
DELETE/ALL
HALT

Only the dimensions would be deleted. The note and the lines would remain. The same affect could be obtained from the following statements:

   MASK/OMIT,3,25
DELETE/ALL

By omitting the object types, line and drafting aids (note), thus making them not selectable, the DELETE/ALL statement can only delete what is left, dimensions.