Files
DOSSIER/src/io/dwgParser.ts
T
Claude a5c3ea55f2 [K4] S4 Import: Aufrufer auf den Kern umgestellt, TS-Umwandlung gelöscht
DXF/DWG/PDF (Import-Dialog, CLI), IFC (Meshes/Bauteile) und Meshes laufen über ProjectDocument.importDrawing/
importIfc/importMesh (Store commitImport, ein Undo-Schritt). Dialoge halten nur Puffer + Zusammenfassung
(io/importSource.ts). Gelöscht: dxfToDrawings, pdfLineStyles, ifcElements, decodeImport/decodeIfc/decodeMesh,
ifcToImportedMeshes, meshObjectsToImportedMeshes, pdfPageToImport, buildDrawings, planImportLayers, Store
addDrawingLevel/importDrawings, Paritätstests. ensureContextCategories als Fassade über den Kern; CLI-PDF bekommt
wie die App Linienstile für Strichmuster. Tests über importView.testutil (Leseansicht des Kerns).
2026-10-29 14:52:21 +00:00

14 lines
799 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// DWG-Import → Kontext-Geometrie: dünne Fassade über das Rust-Format-Modul (acadrust, DWG R13–2018,
// `src-tauri/fileio/src/import.rs`). Gleicher Weg wie DXF (`dxfParserAsync.ts`, Web-Worker), gleiches
// Ergebnis (`ParsedImport`, Kern liest den Puffer): Konturen, Texte, Meshes je Ebene (z. B. „Roof"/„Wall"/„Floor" bei
// swissBUILDINGS3D v3 „separated", Polyface-Meshes in per INSERT platzierten Blöcken), Ebenenfarben,
// Entity-Histogramm.
import type { ParsedImport } from "./importSource";
import { parseDxfAsync } from "./dxfParserAsync";
/** Liest eine DWG-Datei. Wirft bei unlesbaren Dateien (der Aufrufer zeigt den ODA-Hinweis). */
export function parseDwg(data: ArrayBuffer, layout?: string): Promise<ParsedImport> {
return parseDxfAsync(data, undefined, layout);
}