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
BoltIdint-
The bolt group identifier.
Noint-
The hole index in the bolt group.
PartIdint-
The part identifier through which this hole passes.
PointZdouble-
The Z offset of the hole along the bolt axis.
Lengthdouble-
The grip length of the hole in this part.
LongHoleDirint-
Slotted hole direction.
LongHoleTypeint-
Slotted hole type.
ShorteningLengthdouble-
Hole shortening length.
Fields
ExpectedRowSize
The expected row body size in bytes: 48.
public const int ExpectedRowSize = 48Field Value
TableKey
The table key in model database sections: 140.
public const int TableKey = 140Field Value
Properties
BoltId
The bolt group identifier.
public int BoltId { get; init; }Property Value
Length
The grip length of the hole in this part.
public double Length { get; init; }Property Value
LongHoleDir
Slotted hole direction.
public int LongHoleDir { get; init; }Property Value
LongHoleType
Slotted hole type.
public int LongHoleType { get; init; }Property Value
No
The hole index in the bolt group.
public int No { get; init; }Property Value
PartId
The part identifier through which this hole passes.
public int PartId { get; init; }Property Value
PointZ
The Z offset of the hole along the bolt axis.
public double PointZ { get; init; }Property Value
ShorteningLength
Hole shortening length.
public double ShorteningLength { get; init; }Property Value
Methods
Decode(ReadOnlySpan<byte>)
Decodes a row body into a TdbIO.BoltHoleRow.
public static BoltHoleRow Decode(ReadOnlySpan<byte> body)Parameters
bodyReadOnlySpan<byte>
Returns
Decode(TableRow)
Decodes the body of row into a TdbIO.BoltHoleRow.
public static BoltHoleRow Decode(TableRow row)Parameters
rowTableRow