Merge branch 'worktree-agent-ac143182c4c59003b' into claude/practical-noether-1hb2s1

This commit is contained in:
Claude committed 2026-11-12 09:21:02 +00:00
commit 9870098dcc
33 files changed
+798 -157

No files matched your search

+18 -3
View File
@@ -13,7 +13,7 @@
//! fehlende kommen ans Ende, unbekannte Felder bleiben).
use crate::cmd_transform::IdGen;
use crate::json_util::{arr, field, with_all};
use crate::json_util::{arr, as_copy, field, with_all};
use crate::ops::{id_of, Op};
use serde_json::Value;
use std::collections::HashMap;
@@ -51,7 +51,7 @@ pub fn paste_ops(clip: &Value, level_id: &str, stamp: &str) -> Vec<Op> {
});
let Some((key, host)) = host else { continue };
let host = Value::String(host.clone());
items.push(with_all(e, vec![("id", Value::String(ids.next(prefix))), (key, host)]));
items.push(with_all(&as_copy(e), vec![("id", Value::String(ids.next(prefix))), (key, host)]));
continue;
}
let id = ids.next(prefix);
@@ -60,7 +60,7 @@ pub fn paste_ops(clip: &Value, level_id: &str, stamp: &str) -> Vec<Op> {
host_ids.insert(old.to_owned(), id.clone());
}
}
items.push(with_all(e, vec![("id", Value::String(id)), (level_field, level.clone())]));
items.push(with_all(&as_copy(e), vec![("id", Value::String(id)), (level_field, level.clone())]));
}
if !items.is_empty() {
ops.push(Op::Add { collection: collection.into(), items, at: None });
@@ -74,6 +74,21 @@ mod tests {
use super::*;
use serde_json::json;
/// [201] Eine Kopie bekommt eine neue id und NICHT die IFC-GlobalId des Originals.
#[test]
fn kopie_traegt_keine_ifc_global_id() {
let clip = json!({
"walls": [{"id": "w1", "floorId": "eg", "ifcGlobalId": "0AbcDEFghijKLMNOPQRSt1"}],
"openings": [{"id": "o1", "hostWallId": "w1", "ifcGlobalId": "1AbcDEFghijKLMNOPQRSt2"}],
"columns": [{"id": "c1", "floorId": "eg", "ifcGlobalId": "2AbcDEFghijKLMNOPQRSt3"}]
});
for op in paste_ops(&clip, "og", "s") {
for item in op.to_json()["items"].as_array().unwrap() {
assert!(item.get("ifcGlobalId").is_none(), "{item}");
}
}
}
#[test]
fn klone_mit_neuen_ids_auf_dem_aktiven_geschoss_oeffnung_umgehaengt() {
let clip = json!({
+6 -6
View File
@@ -12,7 +12,7 @@
//! Rechnung auf der rohen Projekt-Wurzel (verlustfrei, Schlüsselreihenfolge wie das Objekt-Spreizen in
//! TS); Zahlen wie in JS (`jsnum`, `jsmath`), nicht endliche Ergebnisse als Marken (`json_util::js_num`).
use crate::json_util::{arr, field, js_num, num_of, num_or, pt, truthy, with, with_all, with_opt, xy, N};
use crate::json_util::{arr, as_copy, field, js_num, num_of, num_or, pt, truthy, with, with_all, with_opt, xy, N};
use crate::jsmath::hypot2;
use crate::jsnum;
use crate::model::Project;
@@ -959,7 +959,7 @@ pub fn transform_result(root: &Map<String, Value>, p: &Project, req: &TransformR
for o in list(root, "openings") {
let (Some(oid), Some(nh)) = (id_of(o), wall_host(o).and_then(|h| copied.get(h)).cloned()) else { continue };
let nid = ids.next("O");
new_openings.push(with_all(&mv_wall_opening(o, &xf), vec![("id", Value::String(nid.clone())), ("hostWallId", Value::String(nh))]));
new_openings.push(with_all(&as_copy(&mv_wall_opening(o, &xf)), vec![("id", Value::String(nid.clone())), ("hostWallId", Value::String(nh))]));
copied.insert(oid, nid);
}
let to_copy = |id: &str| copied.get(id).cloned();
@@ -976,23 +976,23 @@ pub fn transform_result(root: &Map<String, Value>, p: &Project, req: &TransformR
Kind::Tree => (8, mv_tree(e, &xf)),
Kind::Context => (9, mv_context(e, &xf)),
};
new[slot].push(with(&v, "id", Value::String(new_id.clone())));
new[slot].push(with(&as_copy(&v), "id", Value::String(new_id.clone())));
}
// Öffnungen kopierter Dächer/Decken ([103]) mit neuem Wirt mitkopieren.
for o in list(root, "openings") {
let Some((key, nh)) = surface_host(o).and_then(|(k, h)| Some((k, to_copy(h)?))) else { continue };
let v = with(&mv_surface_opening(o, &xf), key, Value::String(nh));
let v = with(&as_copy(&mv_surface_opening(o, &xf)), key, Value::String(nh));
new_openings.push(with(&v, "id", Value::String(ids.next("O"))));
}
// Kopien frei gewählter Wandöffnungen ([144]) in der Wand versetzt.
for o in &free {
if let Some(v) = slide(o, move_delta(&pts, t), true) {
new_openings.push(with(&v, "id", Value::String(ids.next("O"))));
new_openings.push(with(&as_copy(&v), "id", Value::String(ids.next("O"))));
}
}
for o in &free_surf {
if let Some(v) = slide_surface_opening(root, o, move_delta(&pts, t)) {
new_openings.push(with(&v, "id", Value::String(ids.next("O"))));
new_openings.push(with(&as_copy(&v), "id", Value::String(ids.next("O"))));
}
}
}
+7 -3
View File
@@ -23,7 +23,7 @@
//! Geschosses, 2D-Linien/-Polylinien (mit Bögen)/-Rechtecke/-Kreise/-Bögen und Achsraster der Ebene.
use crate::cmd_transform::{IdGen, Shapes};
use crate::json_util::{arr, field, js_num, pt, with, with_all};
use crate::json_util::{arr, as_copy, field, js_num, pt, with, with_all};
use crate::joins::Line;
use crate::model::{DimFeature, DimRef, Drawing2D, Drawing2DGeom, Project, Vec2, Wall, WallReferenceLine};
use crate::ops::{id_of, Op};
@@ -592,7 +592,7 @@ pub fn commit(root: &Map<String, Value>, pr: &Project, e: &Edit, ids: &mut IdGen
ops.push(Op::Replace { collection: "walls".into(), entity: with_all(src, f) });
} else {
f.push(("id", Value::String(id.clone())));
added.push(with_all(src, f));
added.push(with_all(&as_copy(src), f));
}
targets.push(Target { id, s0: *s0, s1: *s1 });
}
@@ -605,7 +605,7 @@ pub fn commit(root: &Map<String, Value>, pr: &Project, e: &Edit, ids: &mut IdGen
let Some(src) = raw(root, "walls", &n.src.id) else { continue };
let mut f = geom_fields(n.a, n.b, n.bulge);
f.push(("id", Value::String(ids.next("wall"))));
let w = with_all(src, f);
let w = with_all(&as_copy(src), f);
// Gerade Kopie einer Bogenwand: kein Bulge.
let w = if n.bulge.is_none() { without(&w, "bulge") } else { w };
added.push(w);
@@ -1291,11 +1291,15 @@ mod tests {
fn trim_mittelstueck_teilt_und_haengt_oeffnungen_um() {
let mut r = t_case();
r.get_mut("walls").unwrap().as_array_mut().unwrap().push(wall("c", (3.0, -3.0), (3.0, 3.0), None));
r.get_mut("walls").unwrap().as_array_mut().unwrap()[0]["ifcGlobalId"] = "0AbcDEFghijKLMNOPQRSt1".into();
let pr = typed(&r);
let e = trim(&pr, find_wall(&pr, "a").unwrap(), P::new(4.5, 0.0), false);
let n = commit_edit(&r, &pr, e);
assert!(close(xy_of(&w_of(&n, "a")["end"]), (3.0, 0.0)));
let new = arr(n.get("walls")).iter().find(|w| w["id"] == "wall-s-1").unwrap();
// [201] Das abgetrennte Stück ist eine neue Wand: GlobalId bleibt nur beim Original.
assert_eq!(w_of(&n, "a")["ifcGlobalId"], "0AbcDEFghijKLMNOPQRSt1");
assert!(new.get("ifcGlobalId").is_none());
assert!(close(xy_of(&new["start"]), (6.0, 0.0)));
let o2 = arr(n.get("openings")).iter().find(|o| o["id"] == "o2").unwrap();
assert_eq!(o2["hostWallId"], "wall-s-1");
+29
View File
@@ -54,6 +54,7 @@ const REC_TREE: f64 = 19.0;
const REC_COLUMN_PIECES: f64 = 20.0;
const REC_CEILING_ARC: f64 = 21.0;
const REC_SPACE_ARC: f64 = 22.0;
const REC_GUIDS: f64 = 23.0;
/// Toleranz des Kerns (`wall_bands.rs::EPS`) für „Öffnung trifft Band".
const BAND_EPS: f64 = 1e-4;
@@ -899,6 +900,34 @@ pub fn ifc_export_data(src: &Project, opt: &IfcOptions) -> Result<Flat, String>
f.nums(&[a, b, storey_base[i]]);
}
// [201] Übernommene GlobalIds (IFC-Import) vor allen Bauteilen; jede GlobalId höchstens einmal
// (Kopien tragen sie nicht, doppelt importierte Dateien würden sonst kollidieren).
{
let mut guids: Vec<(String, String)> = Vec::new();
let mut push = |key: String, g: &Option<String>| {
if let Some(g) = g.as_deref().filter(|g| !g.is_empty()) {
guids.push((key, g.to_string()));
}
};
p.walls.iter().for_each(|x| push(format!("wall/{}", x.id), &x.ifc_global_id));
p.ceilings.iter().flatten().for_each(|x| push(format!("slab/{}", x.id), &x.ifc_global_id));
p.roofs.iter().flatten().for_each(|x| push(format!("roof/{}", x.id), &x.ifc_global_id));
p.columns.iter().flatten().for_each(|x| push(format!("column/{}", x.id), &x.ifc_global_id));
p.stairs.iter().flatten().for_each(|x| push(format!("stair/{}", x.id), &x.ifc_global_id));
p.rooms.iter().flatten().for_each(|x| push(format!("space/{}", x.id), &x.ifc_global_id));
p.extruded_solids.iter().flatten().for_each(|x| push(format!("extrusion/{}", x.id), &x.ifc_global_id));
p.openings.iter().flatten().for_each(|x| push(format!("fill/{}", x.id), &x.ifc_global_id));
let mut seen = std::collections::HashSet::new();
guids.retain(|(_, g)| seen.insert(g.clone()));
if !guids.is_empty() {
f.nums(&[REC_GUIDS, guids.len() as f64]);
for (k, g) in guids {
let (a, b) = (f.str(&k), f.str(&g));
f.nums(&[a, b]);
}
}
}
// Klassifikation: je geschriebenem Bauteil Schlüssel (wie für die GUID), Art und Ebene; `fileio`
// überspringt Schlüssel ohne geschriebenes Bauteil.
let mut classified: Vec<(String, Kind, String)> = Vec::new();
+48
View File
@@ -50,6 +50,8 @@ struct Info {
type_name: Option<String>,
layers: Vec<MatLayer>,
classified: bool,
/// [201] IFC-GlobalId des Quell-Bauteils (22 Zeichen); bleibt am Element, der Export schreibt sie zurück.
global_id: Option<String>,
/// Eigenschaften aus `Pset_*Common` (Text).
common: Map<String, Value>,
}
@@ -190,6 +192,11 @@ struct Elements {
kept_reasons: Map<String, Value>,
}
/// Gültige IFC-GlobalId: 22 Zeichen aus dem 64er-Alphabet, erstes Zeichen 0–3 (128 Bit).
fn is_ifc_guid(g: &str) -> bool {
g.len() == 22 && g.bytes().all(|b| b.is_ascii_alphanumeric() || b == b'_' || b == b'$') && matches!(g.as_bytes()[0], b'0'..=b'3')
}
fn s_of(v: Option<&Value>) -> Option<String> {
v.and_then(Value::as_str).map(str::to_string)
}
@@ -214,6 +221,7 @@ fn info_of(e: &Value) -> Info {
type_name: s_of(e.get("typeName")),
layers,
classified: e.get("classifications").and_then(Value::as_array).is_some_and(|a| !a.is_empty()),
global_id: s_of(e.get("globalId")).filter(|g| is_ifc_guid(g)),
common: e.get("common").and_then(Value::as_object).cloned().unwrap_or_default(),
}
}
@@ -417,6 +425,13 @@ fn id_of(v: &Value) -> &str {
v.get("id").and_then(Value::as_str).unwrap_or("")
}
/// [201] GlobalId der Quelle ans neue Element (`ifcGlobalId`).
fn set_gid(v: &mut Value, info: &Info) {
if let Some(g) = &info.global_id {
v["ifcGlobalId"] = g.clone().into();
}
}
fn pt(p: [f64; 2]) -> Value {
json!({"x": js_num(p[0]), "y": js_num(p[1])})
}
@@ -694,6 +709,7 @@ fn elements_ops(root: &Map<String, Value>, meta: &Value, products: &[IfcProduct]
if let Some(b) = w.info.flag("LoadBearing") {
o["loadBearing"] = b.into();
}
set_gid(&mut o, &w.info);
walls.push(o);
}
let mut door_types: Vec<(Value, bool)> = list_of(root, "doorTypes");
@@ -740,6 +756,9 @@ fn elements_ops(root: &Map<String, Value>, meta: &Value, products: &[IfcProduct]
let mut v = Map::new();
v.insert("id".into(), ctx.new_id("opening").into());
v.insert("type".into(), "opening".into());
if let Some(g) = &o.info.global_id {
v.insert("ifcGlobalId".into(), g.clone().into());
}
v.insert("hostWallId".into(), host["id"].clone());
v.insert("categoryCode".into(), OPENING_CATEGORY.into());
v.insert("kind".into(), kind.into());
@@ -795,6 +814,9 @@ fn elements_ops(root: &Map<String, Value>, meta: &Value, products: &[IfcProduct]
let mut v = Map::new();
v.insert("id".into(), ctx.new_id("ceiling").into());
v.insert("type".into(), "ceiling".into());
if let Some(g) = &s.info.global_id {
v.insert("ifcGlobalId".into(), g.clone().into());
}
v.insert("floorId".into(), fid.clone().into());
v.insert("categoryCode".into(), CEILING_CATEGORY.into());
v.insert("outline".into(), s.outline.iter().map(|&p| mv(p)).collect());
@@ -824,6 +846,9 @@ fn elements_ops(root: &Map<String, Value>, meta: &Value, products: &[IfcProduct]
let mut v = Map::new();
v.insert("id".into(), ctx.new_id("column").into());
v.insert("type".into(), "column".into());
if let Some(g) = &c.info.global_id {
v.insert("ifcGlobalId".into(), g.clone().into());
}
v.insert("floorId".into(), fid.clone().into());
v.insert("categoryCode".into(), COLUMN_CATEGORY.into());
v.insert("position".into(), mv(c.center));
@@ -880,6 +905,7 @@ fn elements_ops(root: &Map<String, Value>, meta: &Value, products: &[IfcProduct]
if let Some(t) = s.info.text("FloorBuildUp") {
room["floorBuildUp"] = t.into();
}
set_gid(&mut room, &s.info);
rooms.push(room);
}
@@ -902,6 +928,7 @@ fn elements_ops(root: &Map<String, Value>, meta: &Value, products: &[IfcProduct]
if r.info.layers.iter().any(|l| !l.material.trim().is_empty()) {
v["roofTypeId"] = type_for(&mut ctx, &mut roof_types, &r.info, r.thickness, "rooftype", "roofTypes").into();
}
set_gid(&mut v, &r.info);
roofs.push(v);
}
let mut stairs: Vec<Value> = Vec::new();
@@ -952,6 +979,7 @@ fn elements_ops(root: &Map<String, Value>, meta: &Value, products: &[IfcProduct]
}
_ => {}
}
set_gid(&mut v, &s.info);
stairs.push(v);
}
// Träger als Extrusionskörper (Grundriss + Höhe über der Geschoss-UK).
@@ -966,6 +994,7 @@ fn elements_ops(root: &Map<String, Value>, meta: &Value, products: &[IfcProduct]
if off.abs() > 1e-9 {
v["baseOffset"] = js_num(off);
}
set_gid(&mut v, &b.info);
solids.push(v);
}
@@ -1220,6 +1249,25 @@ mod tests {
assert!(added(&r.ops, "rooms")[0].get("usage").is_none());
}
/// [201] Die GlobalId der Quelle landet an jedem erkannten Bauteil; ungültige fallen weg.
#[test]
fn global_id_goes_to_every_element() {
let (mut m, data) = meta("Haustür Eiche");
let ids = ["0AbcDEFghijKLMNOPQRSt1", "1AbcDEFghijKLMNOPQRSt2", "2AbcDEFghijKLMNOPQRSt3", "3AbcDEFghijKLMNOPQRSt4", "kurz", "0AbcDEFghijKLMNOPQRSt6"];
for (i, g) in ids.iter().enumerate() {
m["elements"]["elements"][i]["globalId"] = (*g).into();
}
let opts = IfcOptions { file_name: "a.ifc".into(), group: None, elements: true };
let r = ifc_import(&root(), &m.to_string(), &[], &[], &data, &opts, 0.0).unwrap();
let gid = |v: &Value| v["ifcGlobalId"].as_str().map(str::to_string);
let walls = added(&r.ops, "walls");
assert_eq!((gid(walls[0]), gid(walls[1])), (Some(ids[0].into()), Some(ids[2].into())));
let openings = added(&r.ops, "openings");
assert_eq!((gid(openings[0]), gid(openings[1])), (Some(ids[1].into()), Some(ids[3].into())));
assert_eq!(gid(added(&r.ops, "roofs")[0]), None, "ungültige GlobalId wird nicht übernommen");
assert_eq!(gid(added(&r.ops, "stairs")[0]), Some(ids[5].into()));
}
#[test]
fn roof_stair_arc_wall_round_opening_type_by_name_and_map_shift() {
let (m, data) = meta("Haustür Eiche");
+6
View File
@@ -125,6 +125,12 @@ pub fn with_opt(v: &Value, fields: Vec<(&str, Option<Value>)>) -> Value {
Value::Object(m)
}
/// [201] Eine Kopie mit neuer id trägt die IFC-GlobalId des Originals nicht mit (sonst zwei Bauteile mit
/// derselben GlobalId im Export).
pub fn as_copy(v: &Value) -> Value {
with_opt(v, vec![("ifcGlobalId", None)])
}
pub fn arr(v: Option<&Value>) -> &[Value] {
v.and_then(Value::as_array).map(Vec::as_slice).unwrap_or(&[])
}
+40
View File
@@ -2838,6 +2838,11 @@ pub struct Wall {
/// Grafik-Kategorie (Ebene), z. B. "20" für Wände.
#[serde(rename = "categoryCode")]
pub category_code: String,
/// [201] IFC-GlobalId des Quell-Bauteils (IFC-Import); der IFC-Export schreibt sie zurück, damit
/// die Rundreise dieselben GUIDs behält. Kopien (Einfügen, Kopieren, Reihe, Wand teilen) tragen sie NICHT.
#[serde(rename = "ifcGlobalId", default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub ifc_global_id: Option<String>,
/// Vorsprung im Baurecht ([63]: Wand eines Erkers): darf mit `SiteRules.projectionDepth`/
/// `projectionShare` in den Grenzabstand ragen. Fehlt ⇒ normales Bauteil.
#[serde(rename = "siteProjection", default, skip_serializing_if = "Option::is_none")]
@@ -3018,6 +3023,11 @@ pub struct Ceiling {
/// Grafik-Kategorie (Ebene), z. B. "30" für Decken.
#[serde(rename = "categoryCode")]
pub category_code: String,
/// [201] IFC-GlobalId des Quell-Bauteils (IFC-Import); der IFC-Export schreibt sie zurück, damit
/// die Rundreise dieselben GUIDs behält. Kopien (Einfügen, Kopieren, Reihe, Wand teilen) tragen sie NICHT.
#[serde(rename = "ifcGlobalId", default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub ifc_global_id: Option<String>,
/// Vorsprung im Baurecht ([63]: Balkon, Erker): darf mit `SiteRules.projectionDepth`/
/// `projectionShare` in den Grenzabstand ragen. Fehlt ⇒ normales Bauteil.
#[serde(rename = "siteProjection", default, skip_serializing_if = "Option::is_none")]
@@ -3219,6 +3229,11 @@ pub struct Roof {
/// Grafik-Kategorie (Ebene), z. B. "35" für Dächer.
#[serde(rename = "categoryCode")]
pub category_code: String,
/// [201] IFC-GlobalId des Quell-Bauteils (IFC-Import); der IFC-Export schreibt sie zurück, damit
/// die Rundreise dieselben GUIDs behält. Kopien (Einfügen, Kopieren, Reihe, Wand teilen) tragen sie NICHT.
#[serde(rename = "ifcGlobalId", default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub ifc_global_id: Option<String>,
/// Objekt-Sperre, analog `Wall.locked`.
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
@@ -3601,6 +3616,11 @@ pub struct Opening {
/// Grafik-Kategorie (Ebene), z. B. "21" für Türen/Fenster.
#[serde(rename = "categoryCode")]
pub category_code: String,
/// [201] IFC-GlobalId des Quell-Bauteils (IFC-Import); der IFC-Export schreibt sie zurück, damit
/// die Rundreise dieselben GUIDs behält. Kopien (Einfügen, Kopieren, Reihe, Wand teilen) tragen sie NICHT.
#[serde(rename = "ifcGlobalId", default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub ifc_global_id: Option<String>,
/// Objekt-Sperre, analog `Wall.locked`.
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
@@ -3914,6 +3934,11 @@ pub struct Stair {
/// Grafik-Kategorie (Ebene), z. B. "40" für Treppen.
#[serde(rename = "categoryCode")]
pub category_code: String,
/// [201] IFC-GlobalId des Quell-Bauteils (IFC-Import); der IFC-Export schreibt sie zurück, damit
/// die Rundreise dieselben GUIDs behält. Kopien (Einfügen, Kopieren, Reihe, Wand teilen) tragen sie NICHT.
#[serde(rename = "ifcGlobalId", default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub ifc_global_id: Option<String>,
/// Objekt-Sperre, analog `Wall.locked`.
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
@@ -4216,6 +4241,11 @@ pub struct Room {
/// Grafik-Kategorie (Ebene), z. B. "45" für Räume.
#[serde(rename = "categoryCode")]
pub category_code: String,
/// [201] IFC-GlobalId des Quell-Bauteils (IFC-Import); der IFC-Export schreibt sie zurück, damit
/// die Rundreise dieselben GUIDs behält. Kopien (Einfügen, Kopieren, Reihe, Wand teilen) tragen sie NICHT.
#[serde(rename = "ifcGlobalId", default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub ifc_global_id: Option<String>,
/// Objekt-Sperre, analog `Wall.locked`.
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
@@ -4565,6 +4595,11 @@ pub struct ExtrudedSolid {
/// [180] Klasse (Ebene/Kategorie) wie bei jedem Bauteil: Sichtbarkeit in Grundriss, Schnitt und Ansicht.
#[serde(rename = "categoryCode")]
pub category_code: String,
/// [201] IFC-GlobalId des Quell-Bauteils (IFC-Import); der IFC-Export schreibt sie zurück, damit
/// die Rundreise dieselben GUIDs behält. Kopien (Einfügen, Kopieren, Reihe, Wand teilen) tragen sie NICHT.
#[serde(rename = "ifcGlobalId", default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub ifc_global_id: Option<String>,
/// Geschlossenes Profil in der XY-Ebene (Grundriss), ≥3 Punkte. Bei einem
/// Kreis-Profil (`circle` gesetzt) eine Tessellierung des Kreises (48-Eck) —
/// für 2D-Footprint/Auswahl/bbox/Verschieben; die 3D-Extrusion nutzt in dem
@@ -4643,6 +4678,11 @@ pub struct Column {
/// Grafik-Kategorie (Ebene), z. B. "50" für Tragwerk.
#[serde(rename = "categoryCode")]
pub category_code: String,
/// [201] IFC-GlobalId des Quell-Bauteils (IFC-Import); der IFC-Export schreibt sie zurück, damit
/// die Rundreise dieselben GUIDs behält. Kopien (Einfügen, Kopieren, Reihe, Wand teilen) tragen sie NICHT.
#[serde(rename = "ifcGlobalId", default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]
pub ifc_global_id: Option<String>,
/// Objekt-Sperre, analog `Wall.locked`.
#[serde(default, skip_serializing_if = "Option::is_none")]
#[ts(optional)]