Table of Contents

Struct BoltHolePointsRow

Namespace
TdbIO
Assembly
TdbIO.dll

Decoded row of table 142 (bolt_hole_points, size 60): intermediate bolt pattern coordinates.

public readonly record struct BoltHolePointsRow : IEquatable<BoltHolePointsRow>

Implements

Inherited Members

Constructors

BoltHolePointsRow(int, double, double, double, double, double, double, int)

Decoded row of table 142 (bolt_hole_points, size 60): intermediate bolt pattern coordinates.

public BoltHolePointsRow(int BoltId, double IntPoint1X, double IntPoint1Y, double IntPoint1Z, double IntPoint2X, double IntPoint2Y, double IntPoint2Z, int NumHoles)

Parameters

BoltId int

The bolt group identifier.

IntPoint1X double

First intermediate coordinate X.

IntPoint1Y double

First intermediate coordinate Y.

IntPoint1Z double

First intermediate coordinate Z.

IntPoint2X double

Second intermediate coordinate X.

IntPoint2Y double

Second intermediate coordinate Y.

IntPoint2Z double

Second intermediate coordinate Z.

NumHoles int

Number of holes in the pattern.

Fields

ExpectedRowSize

The expected row body size in bytes: 60.

public const int ExpectedRowSize = 60

Field Value

int

TableKey

The table key in model database sections: 142.

public const int TableKey = 142

Field Value

int

Properties

BoltId

The bolt group identifier.

public int BoltId { get; init; }

Property Value

int

IntPoint1X

First intermediate coordinate X.

public double IntPoint1X { get; init; }

Property Value

double

IntPoint1Y

First intermediate coordinate Y.

public double IntPoint1Y { get; init; }

Property Value

double

IntPoint1Z

First intermediate coordinate Z.

public double IntPoint1Z { get; init; }

Property Value

double

IntPoint2X

Second intermediate coordinate X.

public double IntPoint2X { get; init; }

Property Value

double

IntPoint2Y

Second intermediate coordinate Y.

public double IntPoint2Y { get; init; }

Property Value

double

IntPoint2Z

Second intermediate coordinate Z.

public double IntPoint2Z { get; init; }

Property Value

double

NumHoles

Number of holes in the pattern.

public int NumHoles { get; init; }

Property Value

int

Methods

Decode(ReadOnlySpan<byte>)

Decodes a row body into a TdbIO.BoltHolePointsRow.

public static BoltHolePointsRow Decode(ReadOnlySpan<byte> body)

Parameters

body ReadOnlySpan<byte>

Returns

BoltHolePointsRow

Decode(TableRow)

Decodes the body of row into a TdbIO.BoltHolePointsRow.

public static BoltHolePointsRow Decode(TableRow row)

Parameters

row TableRow

Returns

BoltHolePointsRow