IFClite TypeScript API
    Preparing search index...

    Class CreateNamespace

    bim.create — Build IFC files from scratch

    Index
    • Quick helper: create a simple building with one storey. Returns { creator, localExpressId } for adding elements.

      Parameters

      • Optionalparams: ProjectParams & { StoreyElevation?: number; StoreyName?: string }

      Returns { creator: IfcCreator; localExpressId: number }

    • Trigger browser download for generated IFC content. Requires a backend (viewer context).

      Parameters

      Returns void

    • Create a new IfcCreator instance.

      const creator = bim.create.project({ Name: 'My Building' });
      const storey = creator.addIfcBuildingStorey({ Name: 'Ground Floor', Elevation: 0 });
      creator.addIfcWall(storey, { Start: [0,0,0], End: [5,0,0], Thickness: 0.2, Height: 3 });
      const { content } = creator.toIfc();

      Parameters

      Returns IfcCreator