Skip to main content

Module parasolid

Module parasolid 

Source
Expand description

Parasolid XT (transmit file) import.

Written from the published Parasolid XT Format Reference; section numbers in this module are that reference’s (July 2022 edition).

  • parse_xt_text reads a text part (.x_t, .xmt_txt) into its node graph: the header, the token stream, and each node laid out by the base schema (schema) as edited by the file’s embedded schema deltas.
  • import_parasolid and import_parasolid_report read its bodies into solids by translating each to Part 21 for the STEP importer (to_step), with names and colours.

Structs§

Node
A node: its type, index and field values in its layout’s order.
NodeLayout
The field layout of one node type as this file writes it.
ParasolidImportReport
What import_parasolid_report returns.
XtFieldDef
XtFile
A parsed text transmit file.

Enums§

Value
One field value. Unset values (?) are None.
XtFieldCount
Scalar, variable-length (the node’s last field) or a fixed array.
XtFieldKind
How a field’s values are written.

Functions§

import_parasolid
Read a Parasolid text part (.x_t, .xmt_txt) into solids.
import_parasolid_report
import_parasolid with names, colours and the import’s diagnostics.
is_xt_text
Whether text is a Parasolid text part: it starts with the transmit header’s preamble (§3.1), or, written without a header, with the part data’s T<length> : TRANSMIT FILE banner (§3.2). Only the start counts, so a STEP file that mentions Parasolid in its own header is not one.
parse_xt_text
Read a text transmit file (.x_t, .xmt_txt).