[B5] [B4] [70] IFC Schweiz: Klassifikation (eBKP-H/Ebene), SIA-416-Zonen, Geschoss-GF; Import liest Klassifikation und Zonen
Export: IfcClassification/-Reference/RelAssociatesClassification als Option im Export-Dialog (eBKP-H-Hauptgruppen je Bauteilart, Modell-Ebene als System "Dossier-Ebenen"; CLI --ebkph --ebenen), IfcZone je SIA-416-Kategorie mit IfcRelAssignsToGroup, Qto_BuildingStoreyBaseQuantities und CH_Qto_SIA416 je Geschoss. Achsraster nicht exportiert (Modell ohne Raster). Import: Klassifikation (Bauteil/Typ) gelesen, Name der Kontext-Meshes, Zählung in der Meldung; IfcZone liefert die SIA-416-Kategorie des Raums. Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
15 files changed
+945
-16
No files matched your search
@@ -10,6 +10,7 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { t } from "../i18n";
|
||||
import { Dropdown } from "./Dropdown";
|
||||
import type { IfcExportOptions } from "../export/ifcClassification";
|
||||
|
||||
/** Direkt-herunterladbare Exportformate (mit Datei-Endung). */
|
||||
export type ExportSaveFormat = "csv" | "ifc" | "obj" | "stl" | "glb" | "step";
|
||||
@@ -29,7 +30,8 @@ export interface ExportSaveDialogProps {
|
||||
initialFormat: ExportSaveFormat;
|
||||
/** Basis-Dateiname OHNE Endung (i. d. R. Projektname). */
|
||||
baseName: string;
|
||||
onSave: (format: ExportSaveFormat, filename: string) => void;
|
||||
/** `ifc`: Klassifikations-Optionen (nur bei Format IFC gesetzt). */
|
||||
onSave: (format: ExportSaveFormat, filename: string, ifc?: IfcExportOptions) => void;
|
||||
onClose: () => void;
|
||||
}
|
||||
|
||||
@@ -59,7 +61,10 @@ export function ExportSaveDialog({
|
||||
const [name, setName] = useState(baseName);
|
||||
|
||||
const filename = withExt(name, EXPORT_FORMAT_EXT[format]);
|
||||
const onConfirm = () => onSave(format, filename);
|
||||
// IFC-Klassifikation (Schweizer Praxis): beides aus, bis die Nutzerin es wählt.
|
||||
const [ebkph, setEbkph] = useState(false);
|
||||
const [layerCodes, setLayerCodes] = useState(false);
|
||||
const onConfirm = () => onSave(format, filename, format === "ifc" ? { ebkph, layerCodes } : undefined);
|
||||
|
||||
return (
|
||||
<div className="imp-overlay" onClick={onClose}>
|
||||
@@ -95,6 +100,22 @@ export function ExportSaveDialog({
|
||||
/>
|
||||
</section>
|
||||
|
||||
{format === "ifc" && (
|
||||
<section className="imp-section">
|
||||
<label className="imp-check">
|
||||
<input type="checkbox" checked={ebkph} onChange={(e) => setEbkph(e.target.checked)} />
|
||||
<span>{t("exportSave.ifc.ebkph")}</span>
|
||||
</label>
|
||||
<div className="imp-note">{t("exportSave.ifc.ebkphHint")}</div>
|
||||
<label className="imp-check">
|
||||
<input type="checkbox" checked={layerCodes} onChange={(e) => setLayerCodes(e.target.checked)} />
|
||||
<span>{t("exportSave.ifc.layers")}</span>
|
||||
</label>
|
||||
<div className="imp-note">{t("exportSave.ifc.layersHint")}</div>
|
||||
<div className="imp-note">{t("exportSave.ifc.zonesNote")}</div>
|
||||
</section>
|
||||
)}
|
||||
|
||||
<section className="imp-section">
|
||||
<div className="imp-section-title">{t("exportSave.filename")}</div>
|
||||
<input
|
||||
|
||||
Reference in new issue
Block a user