pub struct StepExportProduct {
pub name: String,
pub id: String,
pub bodies: Vec<(String, BrepSolid)>,
pub pmi: Option<(PmiState, PmiReport)>,
}Expand description
One product of an exported structure: a part, a sub-assembly, or the root
document. bodies are in the product’s OWN local frame — never posed.
Fields§
§name: StringPRODUCT.name — the parts-library entry name, or the document name.
id: StringPRODUCT.id — the vendor part number: a library part’s BOM
Part_Number attribute, else its sourceKey (export_tree.rs). The
name is used when empty.
bodies: Vec<(String, BrepSolid)>This product’s own solids and their part-local scene names. Empty for a
pure assembly node, which is then written as a bare SHAPE_REPRESENTATION.
pmi: Option<(PmiState, PmiReport)>This product’s OWN PMI — the part document’s pmi block, resolved
against the part’s own geometry (export_tree.rs runs it). Written
into THIS product, with the part’s own names and its own draughting
model, which is where a structured import reads it back from.