MLightCAD
    Preparing search index...

    Function useInsertableBlocks

    • Loads insertable block definitions from the current drawing and fills thumbnails progressively.

      Returns {
          blocks: Ref<
              { name: string; previewUrl?: string }[],
              InsertableBlockItem[] | { name: string; previewUrl?: string }[],
          >;
          cancelRefresh: () => void;
          refreshBlocks: (
              filterNames?: string[] | null,
              isActive?: () => boolean,
          ) => Promise<void>;
      }

      • blocks: Ref<
            { name: string; previewUrl?: string }[],
            InsertableBlockItem[] | { name: string; previewUrl?: string }[],
        >
      • cancelRefresh: () => void
      • refreshBlocks: (filterNames?: string[] | null, isActive?: () => boolean) => Promise<void>