Table of Contents

Constructor DxfAttributeDefinition

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

DxfAttributeDefinition()

Initializes an attribute definition with no tag, prompt or value at the origin, 2.5 high, as AutoCAD's new AttributeDefinition(), in no file; give it its tag before it is added to a block.

public DxfAttributeDefinition()

DxfAttributeDefinition(GeoPoint3, string, string, string, DxfTextStyleTableRecord)

Initializes an attribute definition, as AutoCAD's new AttributeDefinition(position, value, tag, prompt, style): at a point, with its default value, tag and prompt, 2.5 high, in a text style, in no file until it is added to a block.

public DxfAttributeDefinition(GeoPoint3 position, string value, string tag, string prompt, DxfTextStyleTableRecord style)

Parameters

position GeoPoint3

Where it stands, in world coordinates.

value string

Its default value, one line.

tag string

Its tag, a word with no space in it.

prompt string

What an INSERT of the block is asked; empty for none.

style DxfTextStyleTableRecord

Its text style, of the file it is to be added to; null for Standard.

Exceptions

ArgumentNullException

Thrown when the value, tag or prompt is null.

ArgumentException

Thrown when a coordinate is not a finite number, the value or prompt has a line break in it, or the tag is empty or has a space in it.