IFClite TypeScript API
    Preparing search index...

    Function entityToJSON

    • Convert an entity Y.Map into a plain JSON snapshot. Useful for tests and for the IFCX writer.

      Parameters

      • entity: YMap<unknown>

      Returns {
          attributes: Record<string, unknown>;
          children: Record<string, string>;
          classifications: ClassificationRef[];
          geometryRefs: string[];
          inherits: Record<string, string>;
          materials: MaterialAssignment[];
          meta: Record<string, unknown>;
          psets: Record<string, Record<string, PropertyValue>>;
          quantities: Record<string, Record<string, number>>;
      }