Table of Contents

Namespace TdbIO

Classes

Db1Document

A model database (.db1, also xslib.db1 and their .bak copies): the header, the id map and the unpacked bytes. Text sections and table sections are read on request.

Db2Document

A model records file (.db2, also xslib.db2 and their .bak copies): the header and the records up to the end of the file.

DbvDocument

A gzip file whose content starts with DBV@: a name, a GUID list, a few lists of numbers and table sections. Most numbers have no known meaning and are given raw; values that differ from the ones always seen are kept and reported in TdbIO.TdbDocument.Warnings.

GuidMapperDocument

A guid.mapper file: a header line and pairs of GUIDs.

HistoryDocument

A history.db file. It is an SQLite 3 database; only its header is read, the schema is not known.

IdRangeDocument

An id range file (db.idrm, xslib.idrm): the next free value and the ranges handed out.

ModelAssembly

Represents a fabricated assembly or precast unit composed of a main part and optional secondary parts.

ModelBolt

Represents a bolt group connecting two or more parts.

ModelObject

Base class for all entities in a Tekla Structures model.

ModelPart

Represents an individual structural part (steel beam, column, plate, concrete slab, wall, etc.).

ModelWeld

Represents a structural weld connecting two or more parts.

Nc1Block

One block of a DSTV NC file: a line with a two-letter code and the lines up to the next code.

Nc1Document

A DSTV NC file (.nc1): one part, its ST header block, its AK blocks and its BO blocks. Only ASCII text with CR LF line breaks is read.

Nc1Line

One parsed body line of an AK or BO block of a DSTV NC file.

ReportDocument

A finished report (.xsr): plain text in pages. The columns are not parsed.

TableSection

A section of fixed-size rows, as found in .db1 files (TdbIO.Db1Document.ReadTables) and in DBV@ files (TdbIO.DbvDocument.Sections). Sections represent database tables or domains; in .db1 files they are identified by their schema table number in TdbIO.TableSection.Key.

TdbDocument

A file read by TdbIO.TdbFile.Open(System.String,TdbIO.TdbReadOptions). Each kind of file has its own subclass; use pattern matching to reach it. Documents are read-only (the library never changes them after reading), hold their data in memory and are safe to read from several threads.

TdbFile

Entry point: tells the kind of a file and opens it as a TdbIO.TdbDocument.

TdbReadOptions

Options for TdbIO.TdbFile.Open(System.String,TdbIO.TdbReadOptions).

TeklaIfcExportOptions

Options controlling IFC STEP physical file export from TdbIO.TeklaModel.

TeklaIfcGuid

Utilities for buildingSMART IFC GlobalId generation and conversion.

TeklaModel

Represents an in-memory, read-only object model decoded from a Tekla Structures model database (.db1).

TemplateBlock

One block of a template: keyword [instance] { properties and blocks };.

TemplateDocument

A template (.tpl) or report template (.rpt): one root block of nested blocks and properties. The grammar is read in general; no keyword or key is known to the reader.

TemplateValue

The value of one property of a TdbIO.TemplateBlock. Expressions inside strings are not evaluated.

TextChain

One logical text: a head row and the rows it links to, in chain order.

TextSection

A section of 54-byte text rows in a model database (.db1), with its rows joined into chains.

Structs

AssemblyNumberingRow

Decoded row of table 95 (assembly_numbering, size 76): assembly numbering series and mark prefix.

AssemblyRow

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

BoltHolePointsRow

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

BoltHoleRow

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

BoltRow

Decoded row of table 107 (bolt, size 24): bolt group definition and reference points.

CoordsysRow

Decoded row of table 3 (coordsys, size 40): coordinate system origin and length.

Db2Record

One record of a model records file (.db2).

DbvC9Record

One 20-byte record of a DBV@ file that starts with the marker C9 C0 CE DB. The four numbers after the marker are kept raw; their meaning is not known.

DbvGuidRecord

One record of the GUID list of a DBV@ file.

GuidPair

One line of a guid.mapper file. The meaning of the two columns is not known.

IdMapEntry

One entry of the id map of a model database (.db1).

IdRange

One range of an id range file (.idrm).

ModelBoltHole

A single hole in a connected part penetrated by a bolt group.

ModelCoordsys

A coordinate system origin and scale.

ModelPoint

A 3D coordinate point in model space.

Nc1Token

One number of an AK or BO line of a DSTV NC file, such as 100, -0 or 0u.

NumAttrAttrRow

Decoded row of table 48 (numattr_attr, size 44): numeric attribute definition and value.

NumAttrRow

Decoded row of table 38 (numattr, size 24): numeric attribute association.

ObjectModificationRow

Decoded row of table 132 (object_modification, size 20): object modification timestamp and dependency.

ObjectNumberingRow

Decoded row of table 105 (object_numbering, size 12): object numbering association.

ObjectPhaseRow

Decoded row of table 141 (object_phase, size 8): project phase assignment.

ObjectRow

Decoded row of table 1 (object, size 72): object hierarchy, GUID, type, and status flags.

PartAttrRow

Decoded row of table 44 (part_attr, size 372): part profile, material, finish, and classification.

PartNumberingRow

Decoded row of table 94 (part_numbering, size 68): part numbering series and mark prefix.

PartRow

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

PointRow

Decoded row of table 13 (point, size 32): 3D coordinates and visibility.

RelationRow

Decoded row of table 16 (relation, size 60): relationship between two objects.

StrAttrAttrRow

Decoded row of table 49 (strattr_attr, size 120): string attribute definition and value.

StrAttrRow

Decoded row of table 39 (strattr, size 24): string attribute association.

StringPoolRow

Decoded row of table 50 (string, size 45): string pool chunk.

TableRow

One row of a TdbIO.TableSection: a marker byte, the raw body and two trailing numbers representing transaction TimeIds.

WeldingRow

Decoded row of table 20 (welding, size 24): weld connection and seam references.

Enums

TdbFileKind

The kind of a file, found from its content (and, for reports only, from its file name).

TemplateValueKind

The kind of a TdbIO.TemplateValue.