[271] Umbaufilter: Status Bestand/Abbruch/Neu mit Etappen, Filter wie Archicad in Grundriss, Schnitt, Ansicht, Axo, 3D, Kennzahlen, DXF und IFC
Modell (Rust, gen:types): `renovation: {status, phase?}` an Wand, Öffnung (ohne eigenen Status
folgt sie der Wand), Decke, Dach, Treppe, Stütze, Körper und Raum (Raum nur Sichtbarkeit und
Flächen, keine Farbe); `Project.renovation` (Etappen, Farben, eigene Filter, KNOWN_KEYS);
`renovationFilter`/`renovationPhase` an DrawingLevel, ViewTemplate und ViewSnapshot — der Filter
gehört zur Ebene wie die Modelldarstellung [173], damit je Reiter, Ausschnitt und Vorlage.
Kern `renovation.rs` als ein Ort für „sichtbar/wie gezeichnet im Filter“: Vorgaben Bestand,
Abbruch, Neubau, Umbauplan, Endzustand; SIA-400-Farben (Bestand grau, Abbruch gelb gestrichelt,
Neu rot), anpassbar; Etappe „bis n“; neue Öffnung in Bestandswand = Abbruch-Stück, zugemauerte
Öffnung = Ausfachung (die Wand schliesst, wo die Öffnung ausgeblendet ist, wie bei der Regel
„Ausblenden“). Angebunden: Grundriss (Ctx.hidden, Farben je Element-Bereich, nur Schnittflächen
gefüllt, Symbole in Linienfarbe), Schnitt (without_elements + CutRules::with_renovation), Ansicht,
Vektor-Axo, 3D (model3dParts mit Filter, 3D-Fenster nimmt den Filter der aktiven Ebene),
Kennzahlen/Flächen (Text = Zustand), DXF (Layer <Klasse>_Abbruch/_Neu), IFC (Status im
Pset_*Common, Etappe in Dossier_Umbau). Tusche behält die Umbau-Farben (extras::KeepColors).
Neue Bauteile der Zeichenbefehle tragen den Zeichen-Status (commands::stamp_renovation).
Bedienung: Objekt-Info/Objekteinstellungen „Umbau“ und „Etappe“ (Mehrfachauswahl, ein
Undo-Schritt), Statusleiste „Umbau: …“ mit Zeichen-Status und Umbaufilter der Ansicht (im
Überlauf „⋯“ mit der Pausfolie), Befehl `umbau` (B/A/N; getippte Options-Kürzel mit Enter),
Ressourcen-Tab „Umbau“ (Etappen, Farben), Flächenbilanz „Zustand“, Vorlage „Beispiel Umbau“
(CLI :umbau), CLI --renovation/--phase für plan, section, elevation, axo, model3d, kennzahlen.
Tests: Kern renovation_tests.rs (20: Vorgaben, Etappen, Öffnungen in Bestandswand, Grundriss,
Schnitt, Ansicht, Kennzahlen, DXF, IFC, 3D, Tusche, Zeichen-Status, Unsinn), Robustheit (Plan,
Schnitt, Ansicht, Kennzahlen, 3D mit Filter), vitest model/renovation.test.ts und
commands/cmds/renovation.test.ts, e2e renovation271.spec.ts (2× grün). Goldens unverändert.
Bilder doc/review-271 (CLI-SVG --hatch in Chromium, App). Nur im Linux-Container geprüft, nicht
in der Tauri-App/auf dem Mac (Prüfschritt RELEASE-1.0 13.37). Offen: TODO [271].
This commit is contained in:
73 files changed
+2888
-56
No files matched your search
@@ -0,0 +1,77 @@
|
||||
// [271] Umbau: Ops zum Setzen von Status/Etappe, gemeinsame Werte bei Mehrfachauswahl, Etappen-Liste, Kern-Abfragen am
|
||||
// Umbau-Beispiel (Grundriss je Filter, Kennzahlen Bestand/Endzustand, neue Bauteile mit Zeichen-Status).
|
||||
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { applyOps } from "../core/ops";
|
||||
import { documentFor } from "../core/document";
|
||||
import { commonRenovation, renovationFilterList, renovationForNew, setPhasesOps, setRenovationOps } from "./renovation";
|
||||
import { buildUmbauSampleProject } from "./sampleProjectUmbau";
|
||||
import { sampleProject } from "./sampleProject";
|
||||
import { generatePlan } from "../plan/generatePlan";
|
||||
import { computeKennzahlen } from "../analysis/kennzahlen";
|
||||
import { computeAreaTable } from "../analysis/areaTable";
|
||||
import type { Project } from "./types";
|
||||
|
||||
const ALL = new Set(["20", "21", "30", "31", "40", "60"]);
|
||||
|
||||
function fills(p: Project, filter?: string): string[] {
|
||||
const q = filter ? { ...p, drawingLevels: p.drawingLevels.map((l) => (l.id === "eg" ? { ...l, renovationFilter: filter } : l)) } : p;
|
||||
return generatePlan(q, "eg", ALL).primitives.flatMap((x) => (x.kind === "polygon" ? [x.fill] : []));
|
||||
}
|
||||
|
||||
describe("[271] Umbau", () => {
|
||||
it("Status und Etappe setzen: ein Op je geändertem Element, Bestand ohne Etappe entfernt das Feld", () => {
|
||||
const p = sampleProject;
|
||||
const ops = setRenovationOps(p, ["W1", "W9", "O1", "nix"], "new", "e1");
|
||||
expect(ops).toHaveLength(3);
|
||||
const q = applyOps(p, ops);
|
||||
expect(q.walls.find((w) => w.id === "W1")?.renovation).toEqual({ status: "new", phase: "e1" });
|
||||
expect(commonRenovation(q, ["W1", "W9"])).toEqual({ status: "new", phase: "e1" });
|
||||
expect(commonRenovation(q, ["W1", "W2"]).status).toBe("mixed");
|
||||
// Nur den Status ändern: Etappe bleibt.
|
||||
const r = applyOps(q, setRenovationOps(q, ["W1"], "demolish"));
|
||||
expect(r.walls.find((w) => w.id === "W1")?.renovation).toEqual({ status: "demolish", phase: "e1" });
|
||||
// Zurück auf Bestand ohne Etappe: Feld weg.
|
||||
const s = applyOps(r, setRenovationOps(r, ["W1"], "existing", null));
|
||||
expect(s.walls.find((w) => w.id === "W1")).not.toHaveProperty("renovation");
|
||||
// Nichts zu ändern: keine Op (kein leerer Undo-Schritt).
|
||||
expect(setRenovationOps(s, ["W1"], "existing", null)).toHaveLength(0);
|
||||
expect(renovationForNew("existing")).toBeUndefined();
|
||||
});
|
||||
|
||||
it("Etappe entfernen: Elemente verlieren sie, Status bleibt", () => {
|
||||
const p = buildUmbauSampleProject();
|
||||
const q = applyOps(p, setPhasesOps(p, [{ id: "etappe-1", name: "Etappe 1" }]));
|
||||
expect(q.renovation?.phases).toHaveLength(1);
|
||||
expect(q.walls.find((w) => w.id === "W10")?.renovation).toEqual({ status: "new" });
|
||||
expect(q.walls.find((w) => w.id === "W9")?.renovation).toEqual({ status: "demolish", phase: "etappe-1" });
|
||||
});
|
||||
|
||||
it("Kern: Filterliste, Grundriss je Filter, Kennzahlen Bestand vs. Endzustand", () => {
|
||||
const p = buildUmbauSampleProject();
|
||||
expect(renovationFilterList(p).map((f) => f.id)).toEqual(["bestand", "abbruch", "neubau", "umbauplan", "endzustand"]);
|
||||
// Ohne Filter keine Umbau-Farben; Umbauplan grau, gelb und rot.
|
||||
expect(fills(p)).not.toContain("#e3001b");
|
||||
const u = fills(p, "umbauplan");
|
||||
for (const c of ["#a6a6a6", "#ffd800", "#e3001b"]) expect(u).toContain(c);
|
||||
// Neubau: kein Gelb (Abbruch weg), Rot da.
|
||||
const n = fills(p, "neubau");
|
||||
expect(n).not.toContain("#ffd800");
|
||||
expect(n).toContain("#e3001b");
|
||||
// Kennzahlen: der Anbau zählt nur im Endzustand.
|
||||
const b = computeKennzahlen(p, "bestand");
|
||||
const e = computeKennzahlen(p, "endzustand");
|
||||
expect(e.gf).toBeGreaterThan(b.gf);
|
||||
expect(computeAreaTable(p, "bestand")).not.toEqual(computeAreaTable(p, "endzustand"));
|
||||
});
|
||||
|
||||
it("Zeichen-Status: der Kern gibt ihn neuen Bauteilen eines Zeichenbefehls", () => {
|
||||
const p = sampleProject;
|
||||
const doc = documentFor(p);
|
||||
const req = { cmd: "column", ctx: { level: "eg", cat: "50" }, stamp: "t271", at: { x: 1, y: 1 } };
|
||||
const added = (r: object) => doc.cmdOps(r).flatMap((o) => (o.kind === "add" ? (o.items as unknown as Array<{ renovation?: unknown }>) : []));
|
||||
expect(added({ ...req, renovation: { status: "new", phase: "e2" } })[0].renovation).toEqual({ status: "new", phase: "e2" });
|
||||
// Vorgabe Bestand: ohne Feld.
|
||||
expect(added(req)[0]).not.toHaveProperty("renovation");
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,147 @@
|
||||
// [271] Umbau (Archicad „Renovation“): Status je Bauteil, Etappen, Umbaufilter. Die Regeln („sichtbar/wie gezeichnet im
|
||||
// Filter F“) stehen im Kern (`src-tauri/core/src/renovation.rs`); hier nur, was die Oberfläche zum Lesen und Setzen braucht.
|
||||
|
||||
import type { CoreOp } from "../core/ops";
|
||||
import { documentFor } from "../core/document";
|
||||
import { patchItems, setField } from "../core/opsBuild";
|
||||
import type { Project, Renovation, RenovationPhase, RenovationStatus } from "./types";
|
||||
|
||||
/** Eingebaute Umbaufilter (Ids; Namen über `t("renovation.filter.<id>")`). */
|
||||
export const BUILTIN_RENOVATION_FILTERS = ["bestand", "abbruch", "neubau", "umbauplan", "endzustand"] as const;
|
||||
|
||||
/** Status in der Reihenfolge der Oberfläche. */
|
||||
export const RENOVATION_STATUSES: readonly RenovationStatus[] = ["existing", "demolish", "new"];
|
||||
|
||||
/** Listen mit Umbau-Status (Räume nur Sichtbarkeit/Flächen, keine Farbe). */
|
||||
export const RENOVATION_COLLECTIONS = ["walls", "openings", "ceilings", "roofs", "stairs", "columns", "extrudedSolids", "rooms"] as const;
|
||||
export type RenovationCollection = (typeof RENOVATION_COLLECTIONS)[number];
|
||||
|
||||
/** SIA-400-Vorgabe der Umbau-Farben (gleich wie `renovation::default_style` im Kern). */
|
||||
export const DEFAULT_RENOVATION_STYLES: Record<RenovationStatus, { fill: string; line?: string; dashed: boolean }> = {
|
||||
existing: { fill: "#a6a6a6", dashed: false },
|
||||
demolish: { fill: "#ffd800", dashed: true },
|
||||
new: { fill: "#e3001b", line: "#c00016", dashed: false },
|
||||
};
|
||||
|
||||
export interface RenovationFilterEntry {
|
||||
id: string;
|
||||
name: string;
|
||||
builtin: boolean;
|
||||
}
|
||||
|
||||
/** Eingebaute und eigene Umbaufilter (Kern-Abfrage `renovationFilters`). */
|
||||
export function renovationFilterList(project: Project): RenovationFilterEntry[] {
|
||||
return documentFor(project).query<RenovationFilterEntry[]>("renovationFilters");
|
||||
}
|
||||
|
||||
/** Status eines Elements (fehlt/unbekannt ⇒ Bestand). */
|
||||
export function renovationStatus(r: Renovation | undefined | null): RenovationStatus {
|
||||
return r?.status === "demolish" || r?.status === "new" ? r.status : "existing";
|
||||
}
|
||||
|
||||
/** Etappen des Projekts in ihrer Reihenfolge. */
|
||||
export function renovationPhases(project: Project): readonly RenovationPhase[] {
|
||||
return project.renovation?.phases ?? [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Umbau-Angaben für ein neues Element nach dem aktuellen Zeichen-Status: Bestand (Vorgabe) ohne Feld, sonst Status
|
||||
* und Etappe.
|
||||
*/
|
||||
export function renovationForNew(status: RenovationStatus, phase?: string | null): Renovation | undefined {
|
||||
if (status === "existing" && !phase) return undefined;
|
||||
return phase ? { status, phase } : { status };
|
||||
}
|
||||
|
||||
/**
|
||||
* Ops: Status (und Etappe) für alle Elemente mit id in `ids` setzen (ein Undo-Schritt, wenn zusammen angewandt).
|
||||
* `phase`: `undefined` = Etappe unverändert, `null` = keine Etappe. Bestand ohne Etappe entfernt das Feld.
|
||||
*/
|
||||
export function setRenovationOps(project: Project, ids: Iterable<string>, status: RenovationStatus | undefined, phase?: string | null): CoreOp[] {
|
||||
const set = new Set(ids);
|
||||
const ops: CoreOp[] = [];
|
||||
for (const c of RENOVATION_COLLECTIONS) {
|
||||
ops.push(
|
||||
...patchItems(project, c, set, (e) => {
|
||||
const old = (e as { renovation?: Renovation }).renovation;
|
||||
const st = status ?? renovationStatus(old);
|
||||
const ph = phase === undefined ? old?.phase : phase ?? undefined;
|
||||
const next = renovationForNew(st, ph);
|
||||
const { renovation: _drop, ...rest } = e as { renovation?: Renovation } & Record<string, unknown>;
|
||||
void _drop;
|
||||
return (next ? { ...rest, renovation: next } : rest) as unknown as typeof e;
|
||||
}),
|
||||
);
|
||||
}
|
||||
return ops;
|
||||
}
|
||||
|
||||
/** Element-Ids der Auswahl, die einen Umbau-Status tragen können. */
|
||||
export function renovatableIds(project: Project, ids: Iterable<string>): string[] {
|
||||
const set = new Set(ids);
|
||||
const out: string[] = [];
|
||||
for (const c of RENOVATION_COLLECTIONS) {
|
||||
for (const e of (project[c] ?? []) as { id: string }[]) if (set.has(e.id)) out.push(e.id);
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
/** Gemeinsamer Status bzw. gemeinsame Etappe der Elemente `ids` (`"mixed"` bei verschiedenen Werten, `null` ohne Elemente). */
|
||||
export function commonRenovation(project: Project, ids: Iterable<string>): { status: RenovationStatus | "mixed" | null; phase: string | "mixed" | null } {
|
||||
const set = new Set(ids);
|
||||
let status: RenovationStatus | "mixed" | null = null;
|
||||
let phase: string | "mixed" | null = null;
|
||||
let first = true;
|
||||
for (const c of RENOVATION_COLLECTIONS) {
|
||||
for (const e of (project[c] ?? []) as { id: string; renovation?: Renovation }[]) {
|
||||
if (!set.has(e.id)) continue;
|
||||
const s = renovationStatus(e.renovation);
|
||||
const ph = e.renovation?.phase ?? "";
|
||||
if (first) {
|
||||
status = s;
|
||||
phase = ph;
|
||||
first = false;
|
||||
} else {
|
||||
if (status !== s) status = "mixed";
|
||||
if (phase !== ph) phase = "mixed";
|
||||
}
|
||||
}
|
||||
}
|
||||
return { status, phase };
|
||||
}
|
||||
|
||||
/** Ops: Etappen-Liste ersetzen (Namen, Reihenfolge); Elemente mit einer entfernten Etappe verlieren sie. */
|
||||
export function setPhasesOps(project: Project, phases: readonly RenovationPhase[]): CoreOp[] {
|
||||
const keep = new Set(phases.map((p) => p.id));
|
||||
const settings = { ...(project.renovation ?? {}), phases: phases.length ? [...phases] : undefined };
|
||||
if (!settings.phases) delete settings.phases;
|
||||
const ops: CoreOp[] = [setField("renovation", Object.keys(settings).length ? settings : undefined)];
|
||||
for (const c of RENOVATION_COLLECTIONS) {
|
||||
ops.push(
|
||||
...patchItems(
|
||||
project,
|
||||
c,
|
||||
(e) => {
|
||||
const ph = (e as { renovation?: Renovation }).renovation?.phase;
|
||||
return !!ph && !keep.has(ph);
|
||||
},
|
||||
(e) => {
|
||||
const r = (e as { renovation?: Renovation }).renovation!;
|
||||
const next = renovationForNew(renovationStatus(r), null);
|
||||
const { renovation: _drop, ...rest } = e as { renovation?: Renovation } & Record<string, unknown>;
|
||||
void _drop;
|
||||
return (next ? { ...rest, renovation: next } : rest) as unknown as typeof e;
|
||||
},
|
||||
),
|
||||
);
|
||||
}
|
||||
return ops;
|
||||
}
|
||||
|
||||
/** Nächste freie Etappen-Id. */
|
||||
export function newPhaseId(project: Project): string {
|
||||
const used = new Set(renovationPhases(project).map((p) => p.id));
|
||||
let i = used.size + 1;
|
||||
while (used.has(`etappe-${i}`)) i++;
|
||||
return `etappe-${i}`;
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
// [271] „Beispiel Umbau": das Demo-Haus (sampleProject) als Bestand, umgebaut in zwei Etappen — Vorlage für Tests, die
|
||||
// Kurzanleitung (Abschnitt Umbau) und die Prüfbilder (`doc/review-271`).
|
||||
//
|
||||
// Etappe 1 (innen): die Zwischenwand W9 wird abgebrochen, das Nordfenster O2 zugemauert (Öffnung „Abbruch“: im Neubau-
|
||||
// und Endzustand ist die Wand dort zu, mit roter Ausfachung im Umbauplan), in die Westwand W4 kommt ein neues Fenster O3
|
||||
// (Öffnung „Neu“ in Bestandswand: im Bestand ist die Wand dort zu, im Umbauplan gelbes Abbruch-Stück).
|
||||
// Etappe 2 (Anbau): ein eingeschossiger Anbau im Norden (Wände, Decke, Raum, Fenster) und eine neue Tür in W3.
|
||||
// Nur Modellfelder, keine Kern-Befehle: das Modul ist ohne geladenen Kern auswertbar.
|
||||
|
||||
import type { Ceiling, DrawingLevel, Opening, Project, Renovation, Room, Wall } from "./types";
|
||||
import { sampleProject } from "./sampleProject";
|
||||
|
||||
const E1: Renovation = { status: "new", phase: "etappe-1" };
|
||||
const E2: Renovation = { status: "new", phase: "etappe-2" };
|
||||
const D1: Renovation = { status: "demolish", phase: "etappe-1" };
|
||||
|
||||
const wall = (id: string, x0: number, y0: number, x1: number, y1: number): Wall => ({
|
||||
id, type: "wall", floorId: "eg", categoryCode: "20", start: { x: x0, y: y0 }, end: { x: x1, y: y1 }, wallTypeId: "aw", height: 2.6, renovation: E2,
|
||||
});
|
||||
|
||||
const win = (id: string, hostWallId: string, position: number, width: number, renovation?: Renovation): Opening => ({
|
||||
id, type: "opening", hostWallId, categoryCode: "21", kind: "window", typeId: "window-standard", position, width, height: 1.2, sillHeight: 0.9,
|
||||
...(renovation ? { renovation } : {}),
|
||||
});
|
||||
|
||||
/** Das Umbau-Beispiel (frische Kopie bei jedem Aufruf). */
|
||||
export function buildUmbauSampleProject(): Project {
|
||||
const base = structuredClone(sampleProject);
|
||||
const levels: DrawingLevel[] = [
|
||||
...base.drawingLevels,
|
||||
// Schnitt durch den Anbau (Nord–Süd, Blick nach Osten): zeigt Bestand, Abbruch W9 nicht, aber Anbau und neue Tür.
|
||||
{ id: "schnitt-b", name: "Schnitt B", kind: "section", visible: true, locked: false, linePoints: [{ x: 1.4, y: -1 }, { x: 1.4, y: 8 }], directionSign: -1 },
|
||||
];
|
||||
const walls: Wall[] = base.walls.map((w) => (w.id === "W9" ? { ...w, renovation: D1 } : w));
|
||||
walls.push(wall("W10", 0, 4, 0, 7), wall("W11", 0, 7, 3, 7), wall("W12", 3, 7, 3, 4));
|
||||
const openings: Opening[] = (base.openings ?? []).map((o) => (o.id === "O2" ? { ...o, renovation: D1 } : o));
|
||||
openings.push(
|
||||
win("O3", "W4", 1.5, 1.0, E1),
|
||||
// Neue Tür in der Bestandswand W3 (W3 läuft von x 5 nach x 0: Tür x 1.9–1.0) zum Anbau.
|
||||
{ id: "O4", type: "opening", hostWallId: "W3", categoryCode: "21", kind: "door", typeId: "door-standard", position: 3.1, width: 0.9, height: 2.1, sillHeight: 0, swing: "left", hinge: "start", renovation: E2 },
|
||||
// Fenster des Anbaus: ohne eigenen Status, folgt der neuen Wand.
|
||||
win("O5", "W11", 0.9, 1.2),
|
||||
);
|
||||
const c1 = (base.ceilings ?? [])[0];
|
||||
const ceilings: Ceiling[] = [
|
||||
...(base.ceilings ?? []),
|
||||
{ ...c1, id: "C2", outline: [{ x: 0, y: 4 }, { x: 3, y: 4 }, { x: 3, y: 7 }, { x: 0, y: 7 }], renovation: E2 },
|
||||
];
|
||||
const r1 = (base.rooms ?? [])[0];
|
||||
const h = 0.1725;
|
||||
const rooms: Room[] = [
|
||||
...(base.rooms ?? []),
|
||||
{
|
||||
...r1, id: "R2", name: "Anbau", siaCategory: "HNF",
|
||||
boundary: [{ x: h, y: 4 + h }, { x: 3 - h, y: 4 + h }, { x: 3 - h, y: 7 - h }, { x: h, y: 7 - h }],
|
||||
stampAnchor: { x: 1.5, y: 5.8 },
|
||||
renovation: E2,
|
||||
},
|
||||
];
|
||||
return {
|
||||
...base,
|
||||
id: "beispiel-umbau",
|
||||
name: "Beispiel Umbau",
|
||||
drawingLevels: levels,
|
||||
walls,
|
||||
openings,
|
||||
ceilings,
|
||||
rooms,
|
||||
renovation: {
|
||||
phases: [
|
||||
{ id: "etappe-1", name: "Etappe 1" },
|
||||
{ id: "etappe-2", name: "Etappe 2" },
|
||||
],
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -222,6 +222,8 @@ export type Ceiling = {
|
||||
* Z-Wert; „floor" bindet die UK an ein Geschoss.
|
||||
*/
|
||||
bottom?: VerticalAnchor;
|
||||
/** [271] Umbau: Status (Bestand, Abbruch, Neu) und Etappe. Fehlt ⇒ Bestand. */
|
||||
renovation?: Renovation;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -327,6 +329,8 @@ export type Column = {
|
||||
strokeWeightSource?: AttributeSource;
|
||||
/** Quelle der Schraffur, analog {@link Column.foregroundSource}. */
|
||||
hatchSource?: AttributeSource;
|
||||
/** [271] Umbau: Status (Bestand, Abbruch, Neu) und Etappe. Fehlt ⇒ Bestand. */
|
||||
renovation?: Renovation;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1393,6 +1397,16 @@ export type DrawingLevel = {
|
||||
* Fehlt ⇒ der Detailgrad allein bestimmt die Darstellung (heutiges Verhalten).
|
||||
*/
|
||||
modelViewOptionId?: string;
|
||||
/**
|
||||
* [271] Umbaufilter (eingebaut „bestand“, „abbruch“, „neubau“, „umbauplan“, „endzustand“ oder Id aus
|
||||
* `Project.renovation.filters`). Fehlt ⇒ kein Filter: alle Bauteile wie ohne Umbau-Angaben.
|
||||
*/
|
||||
renovationFilter?: string;
|
||||
/**
|
||||
* [271] Etappe, bis zu der der Umbaufilter gilt (Id aus `Project.renovation.phases`): Neues späterer Etappen fehlt
|
||||
* noch, Abbruch späterer Etappen steht noch als Bestand. Fehlt ⇒ alle Etappen.
|
||||
*/
|
||||
renovationPhase?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -1541,6 +1555,8 @@ export type ExtrudedSolid = {
|
||||
* Grundriss und im Schnitt. Fehlt = neutrale Körper-Füllung mit Rückfall-Schraffur.
|
||||
*/
|
||||
componentId?: string;
|
||||
/** [271] Umbau: Status (Bestand, Abbruch, Neu) und Etappe. Fehlt ⇒ Bestand. */
|
||||
renovation?: Renovation;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -2779,6 +2795,10 @@ export type Opening = {
|
||||
doorFrameKind?: "zarge" | "blockrahmen" | "blendrahmen" | "umfassungszarge" | "eckzarge" | "blockzarge" | "futter";
|
||||
/** Übersteuert die Zargen-/Rahmenmasse des Türtyps feldweise ([105]). */
|
||||
doorFrame?: DoorFrameDetail;
|
||||
/**
|
||||
* [271] Umbau: Status (Bestand, Abbruch, Neu) und Etappe. Fehlt ⇒ Bestand wie die Wand (eine neue Öffnung in einer Bestandswand bricht die Wand dort ab, eine Öffnung „Abbruch“ wird zugemauert).
|
||||
*/
|
||||
renovation?: Renovation;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -3233,6 +3253,8 @@ export type Project = {
|
||||
/** Anzeige-Adresse/Bezeichnung des Bezugspunkts. */
|
||||
label?: string;
|
||||
};
|
||||
/** [271] Umbau: Etappen, Farben je Status (SIA 400) und eigene Umbaufilter. */
|
||||
renovation?: RenovationSettings;
|
||||
};
|
||||
|
||||
/** Protokolleintrag einer Publikation ([79]): Datum, Blätter mit Revision, erzeugte Dateien. */
|
||||
@@ -3301,6 +3323,54 @@ export type ReferenceLineRule = {
|
||||
target: "all" | "exterior" | string;
|
||||
};
|
||||
|
||||
/** [271] Umbau-Angaben eines Elements. */
|
||||
export type Renovation = {
|
||||
status: RenovationStatus;
|
||||
/**
|
||||
* Etappe (`Project.renovation.phases`, Id): beim Status „neu“ die Bau-, bei „abbruch“ die Abbruch-Etappe.
|
||||
* Fehlt ⇒ erste Etappe.
|
||||
*/
|
||||
phase?: string;
|
||||
};
|
||||
|
||||
/** [271] Ein Umbaufilter (wie Archicads „Renovation Filter“): Darstellung je Status. */
|
||||
export type RenovationFilter = {
|
||||
id: string;
|
||||
name: string;
|
||||
existing: RenovationShow;
|
||||
demolish: RenovationShow;
|
||||
new: RenovationShow;
|
||||
};
|
||||
|
||||
/** [271] Eine Bau-Etappe (Reihenfolge = Reihenfolge der Liste). */
|
||||
export type RenovationPhase = { id: string; name: string };
|
||||
|
||||
/** [271] Umbau-Einstellungen des Projekts. */
|
||||
export type RenovationSettings = {
|
||||
/** Etappen in ihrer Reihenfolge (Neubau/Abbruch Etappe 1, 2 …). */
|
||||
phases?: Array<RenovationPhase>;
|
||||
styles?: RenovationStyles;
|
||||
/** Eigene Umbaufilter (zusätzlich zu den eingebauten). */
|
||||
filters?: Array<RenovationFilter>;
|
||||
};
|
||||
|
||||
/** [271] Darstellung eines Status im Umbaufilter. */
|
||||
export type RenovationShow = "show" | "hide" | "override";
|
||||
|
||||
/**
|
||||
* [271] Umbau-Status eines Bauteils (Archicad „Renovation Status“; SIA 400: Bestand schwarz/grau, Abbruch gelb,
|
||||
* Neu rot).
|
||||
*/
|
||||
export type RenovationStatus = "existing" | "demolish" | "new";
|
||||
|
||||
/**
|
||||
* [271] Umbau-Farbe eines Status: Füllung der Schnittflächen, Linienfarbe, gestrichelt. Fehlende Felder ⇒ SIA-Vorgabe.
|
||||
*/
|
||||
export type RenovationStyle = { fill?: string; line?: string; dashed?: boolean };
|
||||
|
||||
/** [271] Umbau-Farben je Status (fehlt ⇒ SIA-400-Vorgabe, `renovation::default_style`). */
|
||||
export type RenovationStyles = { existing?: RenovationStyle; demolish?: RenovationStyle; new?: RenovationStyle };
|
||||
|
||||
/** Wie eine Wandschicht an der Öffnung anschliesst ([106]). */
|
||||
export type RevealMode = "buendig" | "zurueck" | "leibung" | "ueberdaemmt";
|
||||
|
||||
@@ -3433,6 +3503,8 @@ export type Roof = {
|
||||
parapetWidth?: number;
|
||||
/** Attika: Bauteil/Material (Farbe, Schnittschraffur); fehlt ⇒ Wandfarbe ohne Schraffur. */
|
||||
parapetComponentId?: string;
|
||||
/** [271] Umbau: Status (Bestand, Abbruch, Neu) und Etappe. Fehlt ⇒ Bestand. */
|
||||
renovation?: Renovation;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -3533,6 +3605,10 @@ export type Room = {
|
||||
ceilingFinish?: string;
|
||||
/** [158] Bodenaufbau als Freitext (z. B. „Parkett 15, UB 80, TSD 20"). */
|
||||
floorBuildUp?: string;
|
||||
/**
|
||||
* [271] Umbau: Status (Bestand, Abbruch, Neu) und Etappe. Fehlt ⇒ Bestand (nur Sichtbarkeit und Flächen je Zustand, keine Umbau-Farbe: ein Raum ist kein Bauteil).
|
||||
*/
|
||||
renovation?: Renovation;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -3941,6 +4017,8 @@ export type Stair = {
|
||||
* [T3] Pfosten-Tiefe in Metern, quer zum Handlauf (rechteckig: fehlt = 0.03; Flachstahl: Dicke, fehlt = 0.01; rund: ohne Wirkung).
|
||||
*/
|
||||
postDepth?: number;
|
||||
/** [271] Umbau: Status (Bestand, Abbruch, Neu) und Etappe. Fehlt ⇒ Bestand. */
|
||||
renovation?: Renovation;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -4307,6 +4385,16 @@ export type ViewSnapshot = {
|
||||
* Blickwinkel `view3d`. Fehlt ⇒ Blickwinkel `view3d`, Isometrie, getönte Flächen.
|
||||
*/
|
||||
doc3d?: Doc3d;
|
||||
/**
|
||||
* [271] Umbaufilter (eingebaut „bestand“, „abbruch“, „neubau“, „umbauplan“, „endzustand“ oder Id aus
|
||||
* `Project.renovation.filters`). Fehlt ⇒ kein Filter: alle Bauteile wie ohne Umbau-Angaben.
|
||||
*/
|
||||
renovationFilter?: string;
|
||||
/**
|
||||
* [271] Etappe, bis zu der der Umbaufilter gilt (Id aus `Project.renovation.phases`): Neues späterer Etappen fehlt
|
||||
* noch, Abbruch späterer Etappen steht noch als Bestand. Fehlt ⇒ alle Etappen.
|
||||
*/
|
||||
renovationPhase?: string;
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -4368,6 +4456,16 @@ export type ViewTemplate = {
|
||||
* Fehlt ⇒ der Detailgrad allein bestimmt die Darstellung (heutiges Verhalten).
|
||||
*/
|
||||
modelViewOptionId?: string;
|
||||
/**
|
||||
* [271] Umbaufilter (eingebaut „bestand“, „abbruch“, „neubau“, „umbauplan“, „endzustand“ oder Id aus
|
||||
* `Project.renovation.filters`). Fehlt ⇒ kein Filter: alle Bauteile wie ohne Umbau-Angaben.
|
||||
*/
|
||||
renovationFilter?: string;
|
||||
/**
|
||||
* [271] Etappe, bis zu der der Umbaufilter gilt (Id aus `Project.renovation.phases`): Neues späterer Etappen fehlt
|
||||
* noch, Abbruch späterer Etappen steht noch als Bestand. Fehlt ⇒ alle Etappen.
|
||||
*/
|
||||
renovationPhase?: string;
|
||||
};
|
||||
|
||||
/** Ansichtstyp eines Geschosses (wie in App). */
|
||||
@@ -4524,6 +4622,8 @@ export type Wall = {
|
||||
* der Elementkante.
|
||||
*/
|
||||
surfacePatternOffset?: Vec2;
|
||||
/** [271] Umbau: Status (Bestand, Abbruch, Neu) und Etappe. Fehlt ⇒ Bestand. */
|
||||
renovation?: Renovation;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user