Table of Contents

Struct AssemblyRow

Namespace
TdbIO
Assembly
TdbIO.dll

Decoded row of table 2 (assembly, size 92): assembly definition and main part reference.

public readonly record struct AssemblyRow : IEquatable<AssemblyRow>

Implements

Inherited Members

Constructors

AssemblyRow(int, int, int, int, int, string, int, int)

Decoded row of table 2 (assembly, size 92): assembly definition and main part reference.

public AssemblyRow(int Id, int Type, int Class, int MainPartId, int Lot, string Name, int Flags, int MainPartByUser)

Parameters

Id int

The assembly identifier (primary key).

Type int

The assembly type code.

Class int

The assembly class code.

MainPartId int

The identifier of the main part (dum).

Lot int

The lot/tracking number.

Name string

The assembly name (e.g. "BEAM", "COLUMN", "SLAB").

Flags int

Assembly flags.

MainPartByUser int

Whether the main part was set explicitly by the user.

Fields

ExpectedRowSize

The expected row body size in bytes: 92.

public const int ExpectedRowSize = 92

Field Value

int

TableKey

The table key in model database sections: 2.

public const int TableKey = 2

Field Value

int

Properties

Class

The assembly class code.

public int Class { get; init; }

Property Value

int

Flags

Assembly flags.

public int Flags { get; init; }

Property Value

int

Id

The assembly identifier (primary key).

public int Id { get; init; }

Property Value

int

Lot

The lot/tracking number.

public int Lot { get; init; }

Property Value

int

MainPartByUser

Whether the main part was set explicitly by the user.

public int MainPartByUser { get; init; }

Property Value

int

MainPartId

The identifier of the main part (dum).

public int MainPartId { get; init; }

Property Value

int

Name

The assembly name (e.g. "BEAM", "COLUMN", "SLAB").

public string Name { get; init; }

Property Value

string

Type

The assembly type code.

public int Type { get; init; }

Property Value

int

Methods

Decode(ReadOnlySpan<byte>)

Decodes a row body into an TdbIO.AssemblyRow.

public static AssemblyRow Decode(ReadOnlySpan<byte> body)

Parameters

body ReadOnlySpan<byte>

Returns

AssemblyRow

Decode(TableRow)

Decodes the body of row into an TdbIO.AssemblyRow.

public static AssemblyRow Decode(TableRow row)

Parameters

row TableRow

Returns

AssemblyRow