Reserved CAD fields for DGN files

The following table defines reserved CAD field schema for reading and writing supported MicroStation elements.

Category

Field name

Data type

Length

Description

Element properties

FID

ObjectID

4

A unique feature identifier.

  • Read-only.

Shape

Geometry

-

The ArcGIS area shape representing the spatial extent of the CAD file.

  • Read-only.

Entity

String

16

The CAD entity.

  • Read-only.

Handle

String

16

A unique CAD entity identifier.

  • Read-only.

Angle

Double

8

Rotation angle in degrees.

  • Point and Annotation feature classes only.

<attribute name>

Text, Long, or Double

8

A named user-defined textual entity used for storing data.

CadType

String

255

Overrides the default output entity type.

CadModel

String

255

A DGN file component that contains elements.

Class

String

255

The entity class designation.

Color

Short

2

The display color of the entity expressed as an integer.

Elevation

Double

8

The z-coordinate value of an entity.

  • For entities with multiple z-coordinates, this is the z-coordinate for the first point of the entity as defined by the CAD application.

EntColor

Short

2

The assigned color of the entity expressed as an integer.

EntLinetype

String

255

The assigned line type of the entity.

EntLineWt

Short

2

The assigned line weight of an entity.

Fill

Short

2

Fill pattern name.

GGroup

Short

2

The graphic group to which an entity belongs.

LineWt

Short

2

The display line weight of an entity.

Linetype

String

255

The display line type of the entity.

LTScale

Double

8

The scale of the entity's line type.

MSLink-DMRS

Long

4

A unique identifier used as a primary key for linking a graphic element to a record in an external database table.

  • Read-only.

MSCtlg-DMRS

Long

4

An identifier in the MSCatalog relation table that uniquely identifies the table containing the MSLink.

  • The MSCatalog table is used by the Microstation database server and stored in the target database.
  • Read-only.

QrotX

Double

8

The x-coordinate quaternion (3D) rotation value.

QrotY

Double

8

The y-coordinate quaternion (3D) rotation value.

QrotZ

Double

8

The z-coordinate quaternion (3D) rotation value.

RefName

String

255

The name of the parent object in which the entity resides.

ScaleX

Double

8

The x-coordinate scale value.

  • Point and Annotation only.

ScaleY

Double

8

The y-coordinate scale value.

  • Point and Annotation only.

ScaleZ

Double

8

The z-coordinate scale value.

  • Point and Annotation only.

Layer properties

Layer

String

255

The CAD drawing layer name.

Level

Long

4

The CAD drawing layer number identifier.

LvlDesc

String

255

The description of the CAD level.

  • Used only with MicroStation V7 and earlier releases.

LvlPlot

Short

2

The CAD plot order of the drawing levels.

LyrColor

Short

2

The CAD drawing layer color expressed as an integer.

LyrFrzn

Short

2

The freeze/thaw state of the CAD drawing layer.

LyrLinetype

String

255

The line type of the CAD drawing layer in which the entity resides.

LyrLineWt

Short

2

The line weight of the CAD drawing layer in which the entity resides.

LyrLock

Short

2

The lock/unlock state of the CAD drawing layer.

LyrOn

Short

2

The on/off state of the CAD drawing layer.

Text properties

FontId

Short

2

The ArcGIS text symbol ID.

  • Read-only.

Height

Double

8

The text height in CAD units.

LnSpace

Short

2

The multiline text spacing type.

  • Read-only.

SpaceFact

Double

8

The multiline text spacing factor.

  • Read-only.

Style

String

255

The text style.

Text

String

255

The text string.

TxtAttach

Short

2

The multiline text attachment parameter.

TxtBoxHt

Double

8

The text entity bounding box height.

TxtBoxWd

Double

8

The text entity bounding box width.

TxtDir

Short

2

The multiline text direction parameter.

TxtFont

String

255

The text entity CAD font.

TxtJust

String

32

The text entity justification parameter.

  • Read-only.

TxtMemo

String

2048

The entire text string not truncated.

TxtOblique

Double

8

The text entity oblique angle.

  • Read-only.

TxtRefWd

Double

8

The multiline text width factor.

  • Read-only.

TxtWidth

Double

8

The text entity width factor.

  • Read-only.

VertAlign

String

32

The text entity vertical alignment parameter.

  • Read-only.

Document properties

DocName

String

255

The file name of the CAD file including the extension.

DocPath

String

4096

The full path of the CAD file including the file name.

  • DocPath can be used to export a single feature class to multiple CAD drawings with the Export To CAD tool when Ignore Paths is unchecked.

DocType

String

255

The file extension associated with the CAD format.

DocVer

String

16

The CAD format version.

Reserved CAD field schema for MicroStation DGN

Related Topics


Published 6/8/2010