Table of Contents

Property Name

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

Name

Gets or sets the name of the block, as Name: AutoCAD's *Model_Space and *Paper_Space for model space and paper space, whatever the file calls them, as a file of R12 calls them $Model_Space and $Paper_Space.

public override string Name { get; set; }

Property Value

string

Set on a block made in code, before it is added; on a block of a file, as AutoCAD renames one: its BLOCK_RECORD's 2, its BLOCK's 2 and 3, the 2 of every INSERT of it, in model space, paper space and the blocks, and of a dimension or a table drawn by it, the arrows of the dimension styles and of the header ($DIMBLK, $DIMBLK1, $DIMBLK2, $DIMLDRBLK) that name it, and the arrows the overrides of a dimension of R12 name by name (DIMBLK, DIMBLK1 and DIMBLK2, 1070 5, 6 or 7 then 1000 the name, in ACAD's DSTYLE); every other record keeping its bytes. A drawing of R2000 or later names an override's arrow by its handle (1005), which renaming leaves as it is. The name it has changes nothing.

Exceptions

ArgumentNullException

Thrown when the name set is null.

ArgumentException

Thrown when the name set is one AutoCAD does not take, begins with *, or is that of another block, letters of either case the same.

InvalidOperationException

Thrown when set on the block of a layout, on one AutoCAD names itself (a name that begins with *), on one of an external reference, or on one erased.