Example: Controlling Color and Linetype Properties in Blocks

A block is defined using the following linetype property settings for each object:

Rectangle linetype

CONTINUOUS
Circle linetype BYLAYER on layer 0
Triangle linetype BYBLOCK

The block is then inserted twice on a layer whose linetype assigned is ISO DASH.

The first time the block is inserted, the current linetype property is set to BYLAYER. Both the circle and the triangle inherit their linetype from the linetype setting for the current layer (ISO DASH).

The second time the block is inserted, the current linetype property is set explicitly to ISO DASH DOT, overriding the layer default linetype. The circle still inherits its linetype (ISO DASH) from the current layer, but the triangle inherits its linetype from the current explicit linetype setting (ISO DASH DOT).

The rectangle's linetype remains fixed in each case.