[B1][18] IFC-Export gegen ifcopenshell pruefen (Schema, Express-Regeln, Geometrie je Bauteil); Fund behoben: IfcOwnerHistory ADDED ohne LastModifiedDate

- scripts/validate-ifc.py (eigenes Pruefskript), exportIfc.validate.test.ts ruft es auf, wenn ifcopenshell
  installiert ist (sonst uebersprungen); CI installiert ifcopenshell + pytest

Claude-Session: https://claude.ai/code/session_01NTYBZBvLYCtugMJoKXaB67
This commit is contained in:
Claude committed 2026-10-27 20:29:53 +00:00
1 parent 301f488653
commit 2c43190ae0
4 files changed
+84 -1

No files matched your search

+4 -1
View File
@@ -337,9 +337,12 @@ export function exportIfcSpf(projectIn: Project): string {
"IFCAPPLICATION",
`#${org},${S("1.0")},${S("dossier")},${S("dossier")}`,
);
// ChangeAction ADDED verlangt ein LastModifiedDate (IFC4-Regel IfcOwnerHistory.CorrectChangeAction):
// beim frischen Export ist es der Erstellungszeitpunkt.
const now = Math.floor(Date.now() / 1000);
const ownerHistory = w.add(
"IFCOWNERHISTORY",
`#${personOrg},#${app},$,${ENUM("ADDED")},$,$,$,${Math.floor(Date.now() / 1000)}`,
`#${personOrg},#${app},$,${ENUM("ADDED")},${now},$,$,${now}`,
);
// Einheiten (Meter, Radiant, m², m³).