Return to Statement


Assign Object Attributes Example

This example demonstrates the use of the ASATT statement.

$$
$$ Declarations
$$
ENTITY/LN(4),CR(2)
STRING/ATT(6,132)
$$
$$ Geometry Definition
$$
LN(1) =LINE/-1,-1,1,-1
LN(2) =LINE/1,-1,1,1
LN(3) =LINE/1,1,-1,1
LN(4) =LINE/-1,1,-1,-1
CR(1) =CIRCLE/-.5,-.5,.25
CR(2) =CIRCLE/.5,.5,.25
ATT(1)='USE'
ATT(2)='PART EDGE'
$$
$$ Attribute Assignment
$$
ASATT/LN,ATT(1..2)
$$
$$ Reassign Value for
$$
ATT(2)='MOUNTING HOLE'
ATT(3)='DRILL'
ATT(4)='.5 DIA. .75 DEEP'
ATT(5)='TAP'
ATT(6)='9/16 18 THREAD'
$$
$$ Attribute Assignment
$$
ASATT/CR,ATT

This example would assign attributes to each object in the arrays LN and CR in the following manner:

Objects

Attribute Title

Attribute Value

LN(1..4)

USE

PART EDGE

CR(1..2)

USE

MOUNTING HOLE

CR(1..2)

DRILL

.5 DIA. .75 DEEP

CR(1..2)

TAP

9/16-18 THREAD