[97][98] Objekt-Info: Aussenbauteil und tragend für Wand und Decke
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
8 files changed
+43
-1
No files matched your search
@@ -1924,7 +1924,7 @@ Reihenfolge = Abhängigkeiten. Neue Geometrie entsteht in Rust ([K]).
|
||||
`Opening.mark/fireRating/soundClass/uValue/burglaryClass/notes/isExternal`, `Wall`/`Ceiling` `isExternal`/
|
||||
`loadBearing`. Anzeige editierbar in der Flächenbilanz (`OpeningScheduleSection`), Export CSV/SVG/PDF über das
|
||||
Berichtsmodell des Flächennachweises, CLI `schedule --openings [--format json|csv|svg|pdf]`.
|
||||
Offen: Wand/Decke `isExternal`/`loadBearing` ohne UI (nur über Ops/IFC-Import setzbar; Objekt-Info fehlt);
|
||||
Wand/Decke `isExternal`/`loadBearing`: 4.11. Häkchen „Aussenbauteil"/„Tragend" im Objekt-Info (ohne eigenen Test);
|
||||
Tabelle als Element auf dem Layout-Blatt ✅ [111]; Typ-Vorgaben
|
||||
(Brand/Schall/U am Tür-/Fenstertyp) fehlen — die Werte liegen je Öffnung; Nummern nicht stabil bei
|
||||
Umordnung (automatisch nach Dokumentreihenfolge); nicht in der Tauri-App getestet.
|
||||
|
||||
@@ -491,6 +491,9 @@ fn wall_selection(root: &Map<String, Value>, w: &Value) -> Result<J, String> {
|
||||
// An Dach anschliessen ([G2]): fehlt = automatisch.
|
||||
.v("roofAttach", Value::String(match field(w, "roofAttach").and_then(|v| v.as_bool()) { Some(true) => "on", Some(false) => "off", None => "auto" }.into()))
|
||||
.raw("wallTypeId", w, "wallTypeId")
|
||||
// Aussenbauteil / tragend ([97]/[98]: Listen, IFC-Pset).
|
||||
.v("isExternal", Value::Bool(field(w, "isExternal").and_then(Value::as_bool).unwrap_or(false)))
|
||||
.v("loadBearing", Value::Bool(field(w, "loadBearing").and_then(Value::as_bool).unwrap_or(false)))
|
||||
.n("thickness", thickness)
|
||||
.v("singleLayer", Value::Bool(layers.len() <= 1))
|
||||
.v("wallTypes", type_choices(root, "wallTypes"))
|
||||
@@ -563,6 +566,8 @@ fn ceiling_selection(root: &Map<String, Value>, c: &Value) -> Result<J, String>
|
||||
.o("typeId", nn(field(c, "ceilingTypeId")).or(field(c, "wallTypeId")).cloned())
|
||||
.n("thickness", thickness)
|
||||
.v("singleLayer", Value::Bool(arr(field(wt, "layers")).len() <= 1))
|
||||
.v("isExternal", Value::Bool(field(c, "isExternal").and_then(Value::as_bool).unwrap_or(false)))
|
||||
.v("loadBearing", Value::Bool(field(c, "loadBearing").and_then(Value::as_bool).unwrap_or(false)))
|
||||
.n("area", area)
|
||||
.n("volume", area * thickness)
|
||||
.v("ceilingTypes", type_choices(root, "ceilingTypes"))
|
||||
|
||||
@@ -552,6 +552,8 @@ export const de = {
|
||||
"objinfo.wall.refLine.joint": "Fuge",
|
||||
"objinfo.wall.sliceTermination": "An Decke enden",
|
||||
"objinfo.wall.roofAttach": "An Dach anschliessen",
|
||||
"objinfo.isExternal": "Aussenbauteil",
|
||||
"objinfo.loadBearing": "Tragend",
|
||||
"objinfo.wall.roofAttach.auto": "Automatisch",
|
||||
"objinfo.wall.roofAttach.on": "Ja, bis unters Dach",
|
||||
"objinfo.wall.roofAttach.off": "Nein",
|
||||
|
||||
@@ -550,6 +550,8 @@ export const en: Record<TranslationKey, string> = {
|
||||
"objinfo.wall.refLine.joint": "Joint",
|
||||
"objinfo.wall.sliceTermination": "End at ceiling",
|
||||
"objinfo.wall.roofAttach": "Attach to roof",
|
||||
"objinfo.isExternal": "External",
|
||||
"objinfo.loadBearing": "Load-bearing",
|
||||
"objinfo.wall.roofAttach.auto": "Automatic",
|
||||
"objinfo.wall.roofAttach.on": "Yes, up to the roof",
|
||||
"objinfo.wall.roofAttach.off": "No",
|
||||
|
||||
@@ -1858,6 +1858,22 @@ function SurfaceOpeningSection({
|
||||
// ── Decken-Attribut-Abschnitt ────────────────────────────────────────────────
|
||||
// Aufbau-Typ (einschichtig/mehrschichtig), Dicke/Preset, Referenzgeschoss +
|
||||
// OK-Bindung, Fläche. Alle Werte/Setter über den Host.
|
||||
/** Aussenbauteil / tragend ([97]/[98]): wirken auf Bauteil-/Öffnungslisten und das IFC-Pset. */
|
||||
function BuildingFlags({ isExternal, loadBearing, host }: { isExternal: boolean; loadBearing: boolean; host: ReturnType<typeof usePanelHost> }) {
|
||||
return (
|
||||
<>
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.isExternal")}</span>
|
||||
<input type="checkbox" data-testid="objinfo-isExternal" checked={isExternal} onChange={(e) => host.onSetBuildingFlags({ isExternal: e.target.checked })} />
|
||||
</div>
|
||||
<div className="objinfo-field">
|
||||
<span className="objinfo-flabel">{t("objinfo.loadBearing")}</span>
|
||||
<input type="checkbox" data-testid="objinfo-loadBearing" checked={loadBearing} onChange={(e) => host.onSetBuildingFlags({ loadBearing: e.target.checked })} />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
export function CeilingSection({
|
||||
ceiling,
|
||||
host,
|
||||
@@ -1882,6 +1898,7 @@ export function CeilingSection({
|
||||
<>
|
||||
<div className="objinfo-sep" />
|
||||
<div className="objinfo-section-label">{t("objinfo.ceiling.section")}</div>
|
||||
<BuildingFlags isExternal={ceiling.isExternal} loadBearing={ceiling.loadBearing} host={host} />
|
||||
|
||||
{/* Aufbau-Typ-Segment. */}
|
||||
<div className="objinfo-field">
|
||||
@@ -2099,6 +2116,7 @@ export function WallSection({
|
||||
width={120}
|
||||
/>
|
||||
</div>
|
||||
<BuildingFlags isExternal={wall.isExternal} loadBearing={wall.loadBearing} host={host} />
|
||||
|
||||
{/* Aufbau-Typ-Segment. */}
|
||||
<div className="objinfo-field">
|
||||
|
||||
@@ -419,6 +419,8 @@ export interface PanelHostValue {
|
||||
onSetWallSliceTermination: (termination: SliceTermination) => void;
|
||||
/** An Dach anschliessen ([G2]): "auto" = Default (Wand endet an der Dach-Unterkante). */
|
||||
onSetWallRoofAttach: (attach: "auto" | "on" | "off") => void;
|
||||
/** Aussenbauteil/tragend der gewählten Wand bzw. Decke ([97]/[98]); `false` = Feld weg. */
|
||||
onSetBuildingFlags: (flags: { isExternal?: boolean; loadBearing?: boolean }) => void;
|
||||
/** Ansichtsschraffur ([100]) an der gewählten Wand bzw. am gewählten Dach drehen/versetzen. */
|
||||
onSetSurfacePatternPlacement?: (patch: { surfacePatternAngle?: number; surfacePatternOffset?: { x: number; y: number } }) => void;
|
||||
/** Weist der Wand einen Wandtyp-Preset (mehrschichtiger Aufbau) zu. */
|
||||
|
||||
@@ -126,6 +126,9 @@ export interface WallInfo {
|
||||
sliceTermination: SliceTermination;
|
||||
/** An Dach anschliessen ([G2]): "auto" (Default), "on" (bis unter das Dach verlängern), "off". */
|
||||
roofAttach: "auto" | "on" | "off";
|
||||
/** Aussenbauteil / tragend ([97]/[98]). */
|
||||
isExternal: boolean;
|
||||
loadBearing: boolean;
|
||||
wallTypeId: string;
|
||||
/** Aktuelle Gesamtdicke (Meter). */
|
||||
thickness: number;
|
||||
@@ -164,6 +167,9 @@ export interface WallInfo {
|
||||
export interface CeilingInfo {
|
||||
/** Effektiv aktiver Aufbau-Typ: `ceilingTypeId`, sonst LEGACY-`wallTypeId`. */
|
||||
typeId: string;
|
||||
/** Aussenbauteil / tragend ([97]/[98]). */
|
||||
isExternal: boolean;
|
||||
loadBearing: boolean;
|
||||
/** Aktuelle Gesamtdicke (Meter). */
|
||||
thickness: number;
|
||||
/** Ob der aktuelle Aufbau-Typ einschichtig ist (1 Schicht). */
|
||||
|
||||
@@ -825,6 +825,13 @@ export function usePanelHostBase(opts: {
|
||||
// "auto" ist der Default ⇒ als undefined speichern.
|
||||
updateWall(selection.id, { roofAttach: attach === "auto" ? undefined : attach === "on" });
|
||||
},
|
||||
onSetBuildingFlags: (flags) => {
|
||||
const patch: { isExternal?: boolean; loadBearing?: boolean } = {};
|
||||
if (flags.isExternal !== undefined) patch.isExternal = flags.isExternal || undefined;
|
||||
if (flags.loadBearing !== undefined) patch.loadBearing = flags.loadBearing || undefined;
|
||||
if (selection?.kind === "wall") updateWall(selection.id, patch);
|
||||
else if (selection?.kind === "ceiling") updateCeiling(selection.id, patch);
|
||||
},
|
||||
onSetWallType: (wallTypeId) => {
|
||||
if (selection?.kind === "wall")
|
||||
updateWall(selection.id, { wallTypeId });
|
||||
|
||||
Reference in new issue
Block a user