IFClite TypeScript API
    Preparing search index...

    Interface ModellingStoreBackendMethods

    bim.store roofs by footprint (#9296 round 3).

    interface ModellingStoreBackendMethods {
        addClassification?(
            modelId: string,
            params: ClassificationInStoreParams,
        ): EntityRef;
        addColumnOnGrid?(
            modelId: string,
            storeyExpressId: number,
            params: (ColumnInStoreParams | ProfiledColumnInStoreParams) & TopConstraintParams,
            binding: GridColumnBinding,
        ): EntityRef;
        addCurtainWall?(
            modelId: string,
            storeyExpressId: number,
            params: CurtainWallInStoreParams & TopConstraintParams,
        ): EntityRef;
        addElementType(
            modelId: string,
            params: ElementTypeInStoreParams,
        ): EntityRef;
        addGrid?(
            modelId: string,
            storeyExpressId: number,
            params: GridInStoreParams,
        ): EntityRef;
        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;
        addOpening(
            modelId: string,
            hostExpressId: number,
            params: OpeningInStoreParams,
        ): EntityRef;
        addRailing?(
            modelId: string,
            storeyExpressId: number,
            params: RailingInStoreParams,
        ): EntityRef;
        addStair?(
            modelId: string,
            storeyExpressId: number,
            params: StairInStoreParams,
        ): EntityRef;
        addStorey?(modelId: string, params: AddStoreyParams): 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;
        assignMaterial(
            modelId: string,
            materialExpressId: number,
            objectExpressIds: number[],
        ): EntityRef;
        assignType(
            modelId: string,
            typeExpressId: number,
            objectExpressIds: number[],
        ): 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[];
        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[];
        joinWalls(
            modelId: string,
            aExpressId: number,
            bExpressId: number,
            options?: WallJoinApplyOptions,
        ): EntityRef;
        listStoreyLevels?(modelId: string): StoreySummary[];
        mirrorElements?(
            modelId: string,
            ids: readonly number[],
            params: MirrorElementsParams,
        ): EntityRef[];
        planAddStorey?(modelId: string, params: AddStoreyParams): StoreyAddPlan;
        planStoreyDelete?(ref: EntityRef, mode: StoreyDeleteMode): StoreyDeletePlan;
        planStoreyEdit?(modelId: string, edit: StoreyLevelEdit): StoreyLevelPlan;
        removeStair?(ref: EntityRef): boolean;
        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>;
        setElementSize?(ref: EntityRef, patch: PhysicalSizePatch): EntityRef[];
        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[];
    }

    Hierarchy (View Summary)

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

      Parameters

      Returns EntityRef

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

      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

    • 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

    • 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

    • 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 }[]

    • 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[]

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

      Parameters

      Returns StoreyAddPlan

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

      Parameters

      Returns boolean

    • 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>

    • 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[]