Table of Contents

Struct BoltHoleRow

Namespace
TdbIO
Assembly
TdbIO.dll

Decoded row of table 140 (bolt_hole, size 48): bolt hole through a connected part.

public readonly record struct BoltHoleRow : IEquatable<BoltHoleRow>

Implements

Inherited Members

Constructors

BoltHoleRow(int, int, int, double, double, int, int, double)

Decoded row of table 140 (bolt_hole, size 48): bolt hole through a connected part.

public BoltHoleRow(int BoltId, int No, int PartId, double PointZ, double Length, int LongHoleDir, int LongHoleType, double ShorteningLength)

Parameters

BoltId int

The bolt group identifier.

No int

The hole index in the bolt group.

PartId int

The part identifier through which this hole passes.

PointZ double

The Z offset of the hole along the bolt axis.

Length double

The grip length of the hole in this part.

LongHoleDir int

Slotted hole direction.

LongHoleType int

Slotted hole type.

ShorteningLength double

Hole shortening length.

Fields

ExpectedRowSize

The expected row body size in bytes: 48.

public const int ExpectedRowSize = 48

Field Value

int

TableKey

The table key in model database sections: 140.

public const int TableKey = 140

Field Value

int

Properties

BoltId

The bolt group identifier.

public int BoltId { get; init; }

Property Value

int

Length

The grip length of the hole in this part.

public double Length { get; init; }

Property Value

double

LongHoleDir

Slotted hole direction.

public int LongHoleDir { get; init; }

Property Value

int

LongHoleType

Slotted hole type.

public int LongHoleType { get; init; }

Property Value

int

No

The hole index in the bolt group.

public int No { get; init; }

Property Value

int

PartId

The part identifier through which this hole passes.

public int PartId { get; init; }

Property Value

int

PointZ

The Z offset of the hole along the bolt axis.

public double PointZ { get; init; }

Property Value

double

ShorteningLength

Hole shortening length.

public double ShorteningLength { get; init; }

Property Value

double

Methods

Decode(ReadOnlySpan<byte>)

Decodes a row body into a TdbIO.BoltHoleRow.

public static BoltHoleRow Decode(ReadOnlySpan<byte> body)

Parameters

body ReadOnlySpan<byte>

Returns

BoltHoleRow

Decode(TableRow)

Decodes the body of row into a TdbIO.BoltHoleRow.

public static BoltHoleRow Decode(TableRow row)

Parameters

row TableRow

Returns

BoltHoleRow