IFClite TypeScript API
    Preparing search index...

    Interface MergeModelInput

    A model to be included in the merge, with its data store and metadata.

    interface MergeModelInput {
        dataStore: IfcDataStore;
        id: string;
        lengthUnitScale?: number;
        mutationView?: MutablePropertyView;
        name: string;
    }
    Index
    dataStore: IfcDataStore

    Parsed IFC data store (must have source buffer)

    id: string

    Unique model identifier

    lengthUnitScale?: number

    Length unit scale of this model — the factor that converts the model's raw IFC length values into base SI metres (1.0 metres, 0.001 millimetres, 0.3048 feet, …). Optional: when omitted the exporter reads dataStore.lengthUnitScale, falling back to 1.0.

    The merge compares each model's scale to the first model's to decide whether it can be folded into the unified project (same unit) or must be federated as its own project (different unit). See MergedExporter.

    mutationView?: MutablePropertyView

    Pending edits for this model — property / attribute / quantity / retype / positional mutations and overlay-created entities. When present and non-empty, MergedExporter.exportAsync bakes them into the model (via StepExporter) before merging, so federated export round-trips edits exactly like single-model export. Empty or absent views cost nothing.

    Only honoured by the async exportAsync path: baking re-parses the edited bytes, which needs the async parser. The synchronous MergedExporter.export throws if any model carries pending edits.

    name: string

    Display name