Table of Contents

Method SetBlockAttribute

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetBlockAttribute(DxfAttributeDefinition, DxfAttributeReference)

Gives an attribute of the block a value, as AutoCAD's SetBlockAttribute: the 302 of the definition's entry written, or an entry made after the others (its handle 330, index 177, width 44 of 1 and value 302), as ezdxf writes one, from R2007.

public void SetBlockAttribute(DxfAttributeDefinition attDefId, DxfAttributeReference attributeValue)

Parameters

attDefId DxfAttributeDefinition

The definition, an ATTDEF of the block, in the drawing.

attributeValue DxfAttributeReference

The attribute whose value is taken, its TextString.

Exceptions

ArgumentNullException

Thrown when the definition or the attribute is null.

ArgumentException

Thrown when the definition is in no file.

InvalidOperationException

Thrown in a file older than R2007 (AC1021), or when the MULTILEADER is erased.