Schnittlinien-Werkzeug: Befehl sectionline/viewline setzt linePoints

Zwei Klicks (Start -> Ende) legen die Grundriss-Schnitt-/Ansichtslinie einer
DrawingLevel fest. Ziel: genau eine Platzhalter-Ebene ohne Linie wird belegt,
sonst neue Ebene (Schnitt B/C ...). Live-Vorschau mit Richtungspfeil, Art
(Schnitt/Ansicht) als Inline-Option umschaltbar. Registry-Aliase schnittlinie/
ansichtslinie, Ribbon-Gruppe 'Schnitte' im BIM-Tab, i18n de/en, Datenpfad-Tests.
This commit is contained in:
2026-07-11 00:12:08 +02:00
parent 71d4bea02c
commit 69b5cf5783
7 changed files with 345 additions and 0 deletions
+5
View File
@@ -29,6 +29,7 @@ import { trimCommand } from "./cmds/trim";
import { importCommand } from "./cmds/import";
import { terrainCommand } from "./cmds/terrain";
import { measureCommand } from "./cmds/measure";
import { sectionLineCommand, viewLineCommand } from "./cmds/sectionline";
/** Alle bekannten Befehle, Schlüssel = Befehlsname (lowercase). */
export const COMMANDS: Record<string, Command> = {
@@ -59,6 +60,8 @@ export const COMMANDS: Record<string, Command> = {
import: importCommand,
terrain: terrainCommand,
measure: measureCommand,
sectionline: sectionLineCommand,
viewline: viewLineCommand,
};
/**
@@ -105,6 +108,8 @@ export const ALIASES: Record<string, string> = {
tr: "trim",
imp: "import",
ter: "terrain",
schnittlinie: "sectionline",
ansichtslinie: "viewline",
};
/** Liefert den Befehl zu einem exakten Namen (oder undefined). */