IFClite TypeScript API
    Preparing search index...

    Interface StoreBackendMethods

    interface StoreBackendMethods {
        addBeam(
            modelId: string,
            storeyExpressId: number,
            params: ProfiledBeamInStoreParams | AddBeamInStoreParams,
        ): EntityRef;
        addClassification?(
            modelId: string,
            params: ClassificationInStoreParams,
        ): EntityRef;
        addColumn(
            modelId: string,
            storeyExpressId: number,
            params: ProfiledColumnInStoreParams | AddColumnInStoreParams,
        ): EntityRef;
        addColumnOnGrid?(
            modelId: string,
            storeyExpressId: number,
            params: (ColumnInStoreParams | ProfiledColumnInStoreParams) & TopConstraintParams,
            binding: GridColumnBinding,
        ): EntityRef;
        addCostItem(modelId: string, params: CostItemParams): EntityRef;
        addCostQuantity(modelId: string, params: CostQuantityParams): EntityRef;
        addCostSchedule(modelId: string, params: CostScheduleParams): EntityRef;
        addCostValue(modelId: string, params: CostValueParams): EntityRef;
        addCurtainWall?(
            modelId: string,
            storeyExpressId: number,
            params: CurtainWallInStoreParams & TopConstraintParams,
        ): EntityRef;
        addDoor(
            modelId: string,
            storeyExpressId: number,
            params: AddDoorInStoreParams,
        ): EntityRef;
        addElementType(
            modelId: string,
            params: ElementTypeInStoreParams,
        ): EntityRef;
        addEntity(
            modelId: string,
            def: { attributes: unknown[]; type: string },
        ): EntityRef;
        addGrid?(
            modelId: string,
            storeyExpressId: number,
            params: GridInStoreParams,
        ): EntityRef;
        addGroup?(
            modelId: string,
            params: GroupStoreCreateParams,
        ): GroupStoreIdentity;
        addHostedDoor(
            modelId: string,
            hostExpressId: number,
            params: HostedDoorInStoreParams,
        ): EntityRef;
        addHostedWindow(
            modelId: string,
            hostExpressId: number,
            params: HostedWindowInStoreParams,
        ): EntityRef;
        addMaterial(modelId: string, params: MaterialInStoreParams): EntityRef;
        addMaterialLayerSet(
            modelId: string,
            params: MaterialLayerSetInStoreParams,
        ): EntityRef;
        addMaterialLayerSetUsage(
            modelId: string,
            params: MaterialLayerSetUsageInStoreParams,
        ): EntityRef;
        addMember(
            modelId: string,
            storeyExpressId: number,
            params: ProfiledMemberInStoreParams | AddMemberInStoreParams,
        ): EntityRef;
        addOpening(
            modelId: string,
            hostExpressId: number,
            params: OpeningInStoreParams,
        ): EntityRef;
        addPlate(
            modelId: string,
            storeyExpressId: number,
            params: AddPlateInStoreParams,
        ): EntityRef;
        addRailing?(
            modelId: string,
            storeyExpressId: number,
            params: RailingInStoreParams,
        ): EntityRef;
        addRoof(
            modelId: string,
            storeyExpressId: number,
            params: AddRoofInStoreParams,
        ): EntityRef;
        addSlab(
            modelId: string,
            storeyExpressId: number,
            params: AddSlabInStoreParams,
        ): EntityRef;
        addSpace(
            modelId: string,
            storeyExpressId: number,
            params: AddSpaceInStoreParams,
        ): EntityRef;
        addStair?(
            modelId: string,
            storeyExpressId: number,
            params: StairInStoreParams,
        ): EntityRef;
        addStorey?(modelId: string, params: AddStoreyParams): EntityRef;
        addStructuralAnalysisModel(
            modelId: string,
            params: StructuralAnalysisModelInStoreParams,
        ): EntityRef;
        addStructuralCurveAction?(
            modelId: string,
            params: StructuralCurveActionInStoreParams,
        ): EntityRef;
        addStructuralCurveConnection?(
            modelId: string,
            storeyExpressId: number,
            params: StructuralCurveConnectionInStoreParams,
        ): EntityRef;
        addStructuralCurveMember(
            modelId: string,
            storeyExpressId: number,
            params: StructuralCurveMemberInStoreParams,
        ): EntityRef;
        addStructuralCurveReaction?(
            modelId: string,
            params: StructuralCurveReactionInStoreParams,
        ): EntityRef;
        addStructuralLinearAction(
            modelId: string,
            params: StructuralLinearActionInStoreParams,
        ): EntityRef;
        addStructuralLoad?(
            modelId: string,
            params: StructuralLoadInStoreParams,
        ): EntityRef;
        addStructuralLoadGroup(
            modelId: string,
            params: StructuralLoadGroupInStoreParams,
        ): EntityRef;
        addStructuralPlanarAction?(
            modelId: string,
            params: StructuralSurfaceActionInStoreParams,
        ): EntityRef;
        addStructuralPointAction(
            modelId: string,
            params: StructuralPointActionInStoreParams,
        ): EntityRef;
        addStructuralPointConnection(
            modelId: string,
            storeyExpressId: number,
            params: StructuralPointConnectionInStoreParams,
        ): EntityRef;
        addStructuralPointReaction?(
            modelId: string,
            params: StructuralPointReactionInStoreParams,
        ): EntityRef;
        addStructuralResultGroup?(
            modelId: string,
            params: StructuralResultGroupInStoreParams,
        ): EntityRef;
        addStructuralSurfaceAction?(
            modelId: string,
            params: StructuralSurfaceActionInStoreParams,
        ): EntityRef;
        addStructuralSurfaceConnection?(
            modelId: string,
            storeyExpressId: number,
            params: StructuralSurfaceConnectionInStoreParams,
        ): EntityRef;
        addStructuralSurfaceMember?(
            modelId: string,
            storeyExpressId: number,
            params: StructuralSurfaceMemberInStoreParams,
        ): EntityRef;
        addStructuralSurfaceReaction?(
            modelId: string,
            params: StructuralSurfaceReactionInStoreParams,
        ): EntityRef;
        addWall(
            modelId: string,
            storeyExpressId: number,
            params: AddWallInStoreParams,
        ): EntityRef & { notices?: string[] };
        addWindow(
            modelId: string,
            storeyExpressId: number,
            params: AddWindowInStoreParams,
        ): EntityRef;
        alignElements?(
            modelId: string,
            reference: number,
            targets: readonly number[],
            mode: AlignMode,
        ): Promise<EntityRef[]>;
        arrayElements?(
            modelId: string,
            expressIds: readonly number[],
            params: CopyArrayParams,
        ): CopiedElementRef[];
        assignClassification?(
            modelId: string,
            classificationId: number,
            objects: readonly number[],
        ): EntityRef;
        assignCostItemsToSchedule(
            modelId: string,
            scheduleExpressId: number,
            itemExpressIds: number[],
        ): EntityRef;
        assignMaterial(
            modelId: string,
            materialExpressId: number,
            objectExpressIds: number[],
        ): EntityRef;
        assignToCostItem(
            modelId: string,
            costItemExpressId: number,
            objectExpressIds: number[],
        ): EntityRef;
        assignToStructuralGroup(
            modelId: string,
            groupExpressId: number,
            objectExpressIds: number[],
        ): EntityRef;
        assignType(
            modelId: string,
            typeExpressId: number,
            objectExpressIds: number[],
        ): EntityRef;
        connectStructuralActivityToItem(
            modelId: string,
            itemExpressId: number,
            activityExpressId: number,
        ): EntityRef;
        connectStructuralElement?(
            modelId: string,
            RelatingElement: number,
            RelatedStructuralMember: number,
        ): EntityRef;
        connectStructuralMemberToConnection(
            modelId: string,
            memberExpressId: number,
            connectionExpressId: number,
            options?: StructuralMemberConnectionOptions,
        ): EntityRef;
        copyElements?(
            modelId: string,
            expressIds: readonly number[],
            transforms: readonly CopyTransform[],
        ): CopiedElementRef[];
        copyToStoreys?(
            modelId: string,
            expressIds: readonly number[],
            storeyIds: readonly number[],
        ): { refs: CopiedElementRef[]; storeyId: number }[];
        deleteStorey?(
            ref: EntityRef,
            mode: StoreyDeleteMode,
            expected?: StoreyDeletePlan,
        ): EntityRef[];
        deriveStructuralAnalysisModel?(
            modelId: string,
            options?: StructuralDerivationOptions,
        ): StructuralDerivationResult;
        duplicateElement?(
            ref: EntityRef,
            options: { Name?: string; offset: [number, number, number] },
        ): EntityRef;
        editHostedElement?(ref: EntityRef, patch: HostedElementEdit): EntityRef;
        editRoof?(ref: EntityRef, patch: RoofFootprintEdit): EntityRef;
        editStorey?(
            modelId: string,
            edit: StoreyLevelEdit,
            expected?: StoreyLevelPlan,
        ): EntityRef[];
        editStructuralEntity?(
            modelId: string,
            expressId: number,
            patch: StructuralEntityEdit,
        ): EntityRef;
        joinWalls(
            modelId: string,
            aExpressId: number,
            bExpressId: number,
            options?: WallJoinApplyOptions,
        ): EntityRef;
        listStoreyLevels?(modelId: string): StoreySummary[];
        mirrorElements?(
            modelId: string,
            ids: readonly number[],
            params: MirrorElementsParams,
        ): EntityRef[];
        nestCostItems(
            modelId: string,
            parentExpressId: number,
            childExpressIds: number[],
        ): EntityRef;
        planAddStorey?(modelId: string, params: AddStoreyParams): StoreyAddPlan;
        planStoreyDelete?(ref: EntityRef, mode: StoreyDeleteMode): StoreyDeletePlan;
        planStoreyEdit?(modelId: string, edit: StoreyLevelEdit): StoreyLevelPlan;
        planStructuralDerivation?(
            modelId: string,
            options?: StructuralDerivationOptions,
        ): StructuralDerivationPlan;
        readGroup?(target: GroupStoreIdentity): GroupStoreSnapshot;
        removeCostEntity(
            modelId: string,
            expressId: number,
            options?: { detach?: boolean },
        ): void;
        removeEntity(ref: EntityRef): boolean;
        removeGroup?(expected: GroupStoreSnapshot): void;
        removeStair?(ref: EntityRef): boolean;
        removeStructuralEntity?(modelId: string, expressId: number): EntityRef;
        renameStorey?(ref: EntityRef, Name: string): EntityRef;
        replaceElement?(
            ref: EntityRef,
            storeyExpressId: number,
            element: InStoreReplacementElement,
        ): EntityRef;
        resizeWall?(
            ref: EntityRef,
            start: [number, number, number],
            end: [number, number, number],
            options?: { moveJoinedEnds?: boolean },
        ): EntityRef[];
        roomCommand?(
            modelId: string,
            storeyId: number,
            command: RoomCommand,
        ): Promise<RoomCommandResult>;
        setCostItemValues(
            modelId: string,
            itemExpressId: number,
            valueExpressIds: number[],
        ): void;
        setElementSize?(ref: EntityRef, patch: PhysicalSizePatch): EntityRef[];
        setPositionalAttribute(ref: EntityRef, index: number, value: unknown): void;
        setTopConstraint?(ref: EntityRef, constraint: TopConstraint): EntityRef[];
        splitElements?(
            modelId: string,
            requests: readonly ElementSplitRequest[],
        ): {
            added: EntityRef;
            left: EntityRef;
            right: EntityRef;
            source: EntityRef;
        }[];
        suggestStorey?(
            modelId: string,
            referenceStoreyId: number,
            side: "above" | "below",
        ): StoreySuggestion;
        transformElements?(
            modelId: string,
            expressIds: readonly number[],
            operation: StoreyTransformOp,
        ): EntityRef[];
        trimExtendElement?(
            ref: EntityRef,
            params: ElementTrimExtendParams,
        ): EntityRef[];
        updateGroup?(
            expected: GroupStoreSnapshot,
            patch: GroupStorePatch,
        ): GroupStoreIdentity;
    }

    Hierarchy

    • StoreAuthoringBackendMethods
      • StoreBackendMethods
    Index
    addBeam addClassification? addColumn addColumnOnGrid? addCostItem addCostQuantity addCostSchedule addCostValue addCurtainWall? addDoor addElementType addEntity addGrid? addGroup? addHostedDoor addHostedWindow addMaterial addMaterialLayerSet addMaterialLayerSetUsage addMember addOpening addPlate addRailing? addRoof addSlab addSpace addStair? addStorey? addStructuralAnalysisModel addStructuralCurveAction? addStructuralCurveConnection? addStructuralCurveMember addStructuralCurveReaction? addStructuralLinearAction addStructuralLoad? addStructuralLoadGroup addStructuralPlanarAction? addStructuralPointAction addStructuralPointConnection addStructuralPointReaction? addStructuralResultGroup? addStructuralSurfaceAction? addStructuralSurfaceConnection? addStructuralSurfaceMember? addStructuralSurfaceReaction? addWall addWindow alignElements? arrayElements? assignClassification? assignCostItemsToSchedule assignMaterial assignToCostItem assignToStructuralGroup assignType connectStructuralActivityToItem connectStructuralElement? connectStructuralMemberToConnection copyElements? copyToStoreys? deleteStorey? deriveStructuralAnalysisModel? duplicateElement? editHostedElement? editRoof? editStorey? editStructuralEntity? joinWalls listStoreyLevels? mirrorElements? nestCostItems planAddStorey? planStoreyDelete? planStoreyEdit? planStructuralDerivation? readGroup? removeCostEntity removeEntity removeGroup? removeStair? removeStructuralEntity? renameStorey? replaceElement? resizeWall? roomCommand? setCostItemValues setElementSize? setPositionalAttribute setTopConstraint? splitElements? suggestStorey? transformElements? trimExtendElement? updateGroup?
    • High-level builders: drop an element into an existing parsed model, anchored to a target IfcBuildingStorey. Each emits the full STEP sub-graph (placement → profile → solid → representation + IfcRelContainedInSpatialStructure / IfcRelAggregates for spaces) into the overlay so the element appears alongside the existing model on export.

      Parameters

      Returns EntityRef

    • Complete IfcCurtainWall aggregate, including its member and panel bodies.

      Parameters

      Returns EntityRef

    • Parameters

      • modelId: string
      • def: { attributes: unknown[]; type: string }

      Returns EntityRef

    • IfcGrid with straight, tagged axes and its FootPrint representation.

      Parameters

      Returns EntityRef

    • IfcDoor in a new opening of an IfcWall, linked by IfcRelFillsElement. Returns the door.

      Parameters

      Returns EntityRef

    • IfcWindow in a new opening of an IfcWall, linked by IfcRelFillsElement. Returns the window.

      Parameters

      Returns EntityRef

    • IfcOpeningElement + IfcRelVoidsElement cut into an existing IfcWall or IfcSlab. Returns the opening.

      Parameters

      Returns EntityRef

    • Optional host capability: an IfcRailing along a storey-local polyline. Returns the railing.

      Parameters

      Returns EntityRef

    • Optional host capability: a storey-local IfcStair aggregating one IfcStairFlight. Returns the stair.

      Parameters

      Returns EntityRef

    • Add a storey. Elements on the storey below it that are attached relatively to the storey above theirs ("home storey + 1") re-bind to it and keep their offset from it; explicit bindings stay.

      Parameters

      Returns EntityRef

    • Parameters

      • modelId: string
      • reference: number
      • targets: readonly number[]
      • mode: AlignMode

      Returns Promise<EntityRef[]>

    • Array count includes the original; full circles exclude a coincident final copy.

      Parameters

      Returns CopiedElementRef[]

    • Parameters

      • modelId: string
      • classificationId: number
      • objects: readonly number[]

      Returns EntityRef

    • Assign itemExpressIds (IfcCostItem) to scheduleExpressId (IfcCostSchedule)'s control.

      Parameters

      • modelId: string
      • scheduleExpressId: number
      • itemExpressIds: number[]

      Returns EntityRef

    • Associate a material (any IfcMaterialSelect) with objects via IfcRelAssociatesMaterial, replacing their previous association. Returns the relationship.

      Parameters

      • modelId: string
      • materialExpressId: number
      • objectExpressIds: number[]

      Returns EntityRef

    • Assign objectExpressIds (products AND/OR tasks) to costItemExpressId's control.

      Parameters

      • modelId: string
      • costItemExpressId: number
      • objectExpressIds: number[]

      Returns EntityRef

    • IfcRelAssignsToGroup — members/connections into an analysis model, or activities into a load group.

      Parameters

      • modelId: string
      • groupExpressId: number
      • objectExpressIds: number[]

      Returns EntityRef

    • Type objects via IfcRelDefinesByType, extending the type's relationship and detaching them from a previous type. Returns the relationship.

      Parameters

      • modelId: string
      • typeExpressId: number
      • objectExpressIds: number[]

      Returns EntityRef

    • IfcRelConnectsStructuralActivity applying an action/reaction to the member or connection it acts on.

      Parameters

      • modelId: string
      • itemExpressId: number
      • activityExpressId: number

      Returns EntityRef

    • Parameters

      • modelId: string
      • RelatingElement: number
      • RelatedStructuralMember: number

      Returns EntityRef

    • IfcRelConnectsStructuralMember linking a curve member to a point connection.

      Parameters

      Returns EntityRef

    • Copy a dependency-pruned selection once per storey-local transform, atomically. A copy on another storey re-resolves its top attachment there: one attached to the storey above its own attaches to the storey above its new one (#9296). Returns one ref per selected element per transform, in selection order (a door selected with its wall is its copy in the wall's copy); a copy whose top could not follow its new storey is listed in its ref's unattachedTops (#9352).

      Parameters

      • modelId: string
      • expressIds: readonly number[]
      • transforms: readonly CopyTransform[]

      Returns CopiedElementRef[]

    • Copy a selection onto each of storeyIds (same plan position and height above the floor) in one atomic, undoable operation; the copies come back per storey, in the order given.

      Parameters

      • modelId: string
      • expressIds: readonly number[]
      • storeyIds: readonly number[]

      Returns { refs: CopiedElementRef[]; storeyId: number }[]

    • Plan and write one IfcStructuralAnalysisModel. Refuses when there is nothing to derive. Optional capability.

      Parameters

      Returns StructuralDerivationResult

    • Duplicate with the viewer naming policy; explicit storey-local IFC XYZ displacement.

      Parameters

      • ref: EntityRef
      • options: { Name?: string; offset: [number, number, number] }

      Returns EntityRef

    • Apply an elevation or floor-to-floor edit atomically; returns every moved product. Throws on a refusal, or when expected (the reviewed planStoreyEdit result) no longer matches the model.

      Parameters

      Returns EntityRef[]

    • Join two straight walls through IfcRelConnectsPathElements, rewriting their bodies/axes atomically. Returns the relationship.

      Parameters

      Returns EntityRef

    • Live storeys, highest first, with floor-to-floor height and element count.

      Parameters

      • modelId: string

      Returns StoreySummary[]

    • Nest childExpressIds (IfcCostItem) under parentExpressId as IfcRelNests. A child already nested elsewhere is reparented.

      Parameters

      • modelId: string
      • parentExpressId: number
      • childExpressIds: number[]

      Returns EntityRef

    • Dry run of addStorey: its refusal, and the elements it would bind or re-bind (#9296). Writes nothing.

      Parameters

      Returns StoreyAddPlan

    • Dry run: what an elevation or floor-to-floor edit would move, and any refusal. Writes nothing.

      Parameters

      Returns StoreyLevelPlan

    • Safe-delete an IfcCostSchedule / IfcCostItem / IfcCostValue. Throws, naming referrers, if a value is still listed in another item's CostValues or another value's Components — unless options.detach is set, which rewrites those lists first. Deleting an item detaches it from every IfcRelNests / IfcRelAssignsToControl and cascades to values referenced ONLY by it.

      Parameters

      • modelId: string
      • expressId: number
      • Optionaloptions: { detach?: boolean }

      Returns void

    • Optional host capability: atomically remove a uniquely owned single-flight stair assembly.

      Parameters

      Returns boolean

    • Parameters

      • modelId: string
      • expressId: number

      Returns EntityRef

    • Parameters

      • ref: EntityRef
      • start: [number, number, number]
      • end: [number, number, number]
      • Optionaloptions: { moveJoinedEnds?: boolean }

      Returns EntityRef[]

    • Native mesh/DCEL Room operations with atomic history-aware layout edits.

      Parameters

      Returns Promise<RoomCommandResult>

    • Replace itemExpressId's CostValues. Pass [] to clear it (written as $).

      Parameters

      • modelId: string
      • itemExpressId: number
      • valueExpressIds: number[]

      Returns void

    • Parameters

      Returns void

    • Attach an element's top to the storey above its own (relative), a named storey (explicit) or a slab's underside, or make it fixed, and fit it there now. One atomic edit; returns what re-meshes.

      Parameters

      Returns EntityRef[]

    • The default Name, Elevation and height for a storey above or below referenceStoreyId, from its neighbours. Reads only.

      Parameters

      • modelId: string
      • referenceStoreyId: number
      • side: "above" | "below"

      Returns StoreySuggestion

    • Parameters

      Returns EntityRef[]