Table of Contents

Struct PartRow

Namespace
TdbIO
Assembly
TdbIO.dll

Decoded row of table 10 (part, size 64): part reference points and local coordinate system.

public readonly record struct PartRow : IEquatable<PartRow>

Implements

Inherited Members

Constructors

PartRow(int, int, int, int, int, int, int, int, double, double, double, double)

Decoded row of table 10 (part, size 64): part reference points and local coordinate system.

public PartRow(int Id, int PartAttrId, int PositioningAttrId, int StartPointId, int EndPointId, int GeometryTreeRootId, int CoordsysAttrId, int Reserved, double CoordsysX, double CoordsysY, double CoordsysZ, double Length)

Parameters

Id int

The part identifier (primary key).

PartAttrId int

The attribute identifier in table 44 (part_attr).

PositioningAttrId int

The positioning attribute identifier.

StartPointId int

The start point identifier in table 13 (point).

EndPointId int

The end point identifier in table 13 (point).

GeometryTreeRootId int

The geometry tree root node identifier.

CoordsysAttrId int

The coordinate system attribute identifier.

Reserved int

Reserved integer field.

CoordsysX double

Local coordinate system origin X.

CoordsysY double

Local coordinate system origin Y.

CoordsysZ double

Local coordinate system origin Z.

Length double

Length of the part.

Fields

ExpectedRowSize

The expected row body size in bytes: 64.

public const int ExpectedRowSize = 64

Field Value

int

TableKey

The table key in model database sections: 10.

public const int TableKey = 10

Field Value

int

Properties

CoordsysAttrId

The coordinate system attribute identifier.

public int CoordsysAttrId { get; init; }

Property Value

int

CoordsysX

Local coordinate system origin X.

public double CoordsysX { get; init; }

Property Value

double

CoordsysY

Local coordinate system origin Y.

public double CoordsysY { get; init; }

Property Value

double

CoordsysZ

Local coordinate system origin Z.

public double CoordsysZ { get; init; }

Property Value

double

EndPointId

The end point identifier in table 13 (point).

public int EndPointId { get; init; }

Property Value

int

GeometryTreeRootId

The geometry tree root node identifier.

public int GeometryTreeRootId { get; init; }

Property Value

int

Id

The part identifier (primary key).

public int Id { get; init; }

Property Value

int

Length

Length of the part.

public double Length { get; init; }

Property Value

double

PartAttrId

The attribute identifier in table 44 (part_attr).

public int PartAttrId { get; init; }

Property Value

int

PositioningAttrId

The positioning attribute identifier.

public int PositioningAttrId { get; init; }

Property Value

int

Reserved

Reserved integer field.

public int Reserved { get; init; }

Property Value

int

StartPointId

The start point identifier in table 13 (point).

public int StartPointId { get; init; }

Property Value

int

Methods

Decode(ReadOnlySpan<byte>)

Decodes a row body into a TdbIO.PartRow.

public static PartRow Decode(ReadOnlySpan<byte> body)

Parameters

body ReadOnlySpan<byte>

Returns

PartRow

Decode(TableRow)

Decodes the body of row into a TdbIO.PartRow.

public static PartRow Decode(TableRow row)

Parameters

row TableRow

Returns

PartRow