BIM.works SDKs - v3.0.0-b.115
    Preparing search index...

    API Namespace Ifc is used for IFC related API calls.

    Index

    Constructors

    Methods

    • Compares two chosen objects as a pair, by default with the built-in "everything" definition.

      Parameters

      • left: string | Qid
      • right: string | Qid
      • Optionaloptions: { bcol?: string; definition?: string }

      Returns Promise<
          {
              changed_features: string[];
              changes: Record<string, unknown>;
              label?: string;
              left: string;
              right: string;
              status: "changed" | "unchanged" | "ignored";
              watched: string[];
          },
      >

    • Takes a pair fixed by hand away again

      Parameters

      • uuid: string

      Returns Promise<{ deleted: boolean; overrides: ComparePairOverride[] }>

    • Download a Version converted to another IFC schema. The only supported conversion is IFC2X3 to IFC4. A target schema that the model already has is no error: the result then has no conversion.

      Parameters

      • versionUuid: string

        The UUID of the Version

      • targetSchema: string

        The schema to convert to, for example "IFC4"

      • Optionaloptions: { validate?: boolean }

        validate: hold the converted file against the schema check before it is served

      Returns Promise<ConvertedDownload>

    • Parameters

      • versionUuid: string

      Returns Promise<string>

    • Parameters

      • versionUuid: string

      Returns Promise<string>

    • A stored compare result as a download; resolves to a URL valid for a limited time.

      Parameters

      • resultUuid: string
      • Optionalformat: "json" | "xlsx" | "csv" | "bcf"
      • Optionalcategories: string[]

      Returns Promise<string>

    • Export an IFC file from one or multiple models. Optionally a query can be applied.

      Parameters

      • versionUuids: Iterable<string>

        The Version UUIDs of the models you want to export

      • Optionalquery: string

        An optional query to be applied

      Returns Promise<string>

      A Promise that resolved to a URL, from which the export can be downloaded (limited lifetime)

    • As Ifc.exportIfc, filtering with a BVL script instead of a query; resolves with the download URL

      Parameters

      • versionUuids: Iterable<string>
      • bvl: string

      Returns Promise<string>

    • The changes between two versions as BUL on the left one, verified by a dry run (docs/upload-diff-design.md §14)

      Parameters

      • leftVersionUuid: string
      • rightVersionUuid: string

      Returns Promise<CompareBul>

    • Read a stored compare result, or its status while it is computed.

      Parameters

      Returns Promise<CompareResult>

    • Per removed object of a stored compare, the added objects that could be it, best first

      Parameters

      • resultUuid: string
      • Optionaloptions: {
            leftOids?: number[];
            leftQids?: (string | Qid)[];
            limit?: number;
            radiusMm?: number;
        }

      Returns Promise<MatchCandidates>

    • The log of a schema conversion. Reads a log, converts nothing.

      Parameters

      • versionUuid: string

        The UUID of the Version

      • OptionaltargetSchema: string

        Only for a converted download, the schema it was converted to

      • Optionalformat: "json" | "markdown"

        "json" (default) or "markdown"

      Returns Promise<
          {
              conversion?: SchemaConversionSummary;
              detail_log?: boolean;
              markdown?: string;
              report?: unknown;
          },
      >

    • The pairs fixed by hand for two versions

      Parameters

      • left: string
      • right: string

      Returns Promise<ComparePairOverride[]>

    • Parameters

      • versionUuids: Iterable<string>

      Returns Promise<unknown>

    • Maps objects of one version to their counterparts in another, for re-pointing stored references.

      Parameters

      • request: {
            all?: boolean;
            from: string;
            oids?: number[];
            qids?: string[];
            to: string;
            via?: string;
        }

      Returns Promise<
          {
              from_version: string;
              matchers: string[];
              pairs: { from: number[]; matched_by: number[]; to: number[] };
              result_uuid: string;
              to_version: string;
              unmatched: number[];
          },
      >

    • Replaces an upload by a transaction with the same changes on the version before it; the new version takes the upload's number

      Parameters

      • versionUuid: string
      • Optionalcomment: string

      Returns Promise<
          {
              node: Record<string, unknown>;
              replaced_version_uuid: string;
              transaction: {
                  transaction_uuid: string;
                  version: number;
                  version_uuid: string;
              };
          },
      >

    • Links two objects as one, or confirms an object as really removed or added, for every compare of the two versions

      Parameters

      • override: {
            kind: "removed" | "pair" | "added";
            left: string;
            leftOid?: number;
            note?: string;
            right: string;
            rightOid?: number;
        }

      Returns Promise<{ override: ComparePairOverride; overrides: ComparePairOverride[] }>

    • What changed in versions since the versions before them (the built-in Default compare with the predecessor).

      Parameters

      • versionUuids: string | string[]
      • Optionaloptions: { onlyStored?: boolean }

      Returns Promise<VersionChange[]>