Tags: IfcOpenShell/IfcOpenShell
Tags
Bonsai: make 'has openings' representation error actionable (#8108) When converting a wall representation to a parametric extrusion via the Representation Utilities buttons, an element that has openings would report "has openings - representation cannot be updated" and stop, without telling the user there is an ALT+click path that bakes the openings into the new representation. Point the message at that path so the error is actionable. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Bonsai: place auto-generated opening boundaries at their real position ( #8237) (#8311) * Bonsai: place auto-generated opening boundaries at their real position #8237 auto_generate_boundaries (single-space mode) built each opening/filling boundary from the opening's LOCAL geometry (get_vertices) but first did mat.translation = (0, 0, 0) on its placement matrix. Because the vertices are local, that placement translation is exactly what carries the opening to its real location, so zeroing it collapsed every window/door boundary onto the origin. This is why the auto path misplaced window boundaries while the single-element path (create_element_boundary) placed them correctly, as @MDHering observed with the two modes. Keep the full placement matrix. Verified on the reporter's file: the opening's real placement is (0.1, 1.5, 1.0); a vertex went from (0.6, 0, 0) under the old code to (0.7, 1.5, 1.0) with the fix, i.e. moved by exactly the (0.1, 1.5, 1.0) that was being discarded. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * Remove superfluous comment from #8237 fix --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: CyrilWaechter <cyril@biminsight.ch>
build-all: fix issue building rocksdb on gcc 15 Example error: `error: ‘uint64_t’ has not been declared uint64_t blob_file_number, uint64_t total_blob_count,` See facebook/rocksdb#13365
Bonsai docs: fix version switcher scheme mismatch (http vs https) versionURLs in brand.html used http:// while the docs sites are served over https://, so currentURL.includes(url) never matched and the <select> never reflected/switched to Unstable. Fixes #8023. Generated with the assistance of an AI coding tool.
Bonsai docs: fix version switcher scheme mismatch (http vs https) versionURLs in brand.html used http:// while the docs sites are served over https://, so currentURL.includes(url) never matched and the <select> never reflected/switched to Unstable. Fixes #8023. Generated with the assistance of an AI coding tool.
Bonsai docs: fix version switcher scheme mismatch (http vs https) versionURLs in brand.html used http:// while the docs sites are served over https://, so currentURL.includes(url) never matched and the <select> never reflected/switched to Unstable. Fixes #8023. Generated with the assistance of an AI coding tool.
ifc4d: tolerate activities without a CalendarObjectId in P6 import (#… …5617) Importing a Primavera P6 XML crashed with `AttributeError: 'NoneType' object has no attribute 'text'` in P62Ifc.parse_activity_xml, which read activity.find("pr:CalendarObjectId").text unconditionally. CalendarObjectId is optional on a P6 Activity; when omitted, the activity inherits the project's ActivityDefaultCalendarObjectId. Capture the project default in parse_xml and fall back to it when an activity has no CalendarObjectId (`calendar_id or self.default_calendar_id`). Verified on the reporter's attached file (20241021 Cronograma.xml): 3 of 14 activities lack a CalendarObjectId and reproduced the exact crash on v0.8.0; after the fix parse_xml completes and those activities resolve to the project default calendar "2" (a valid calendar in the file). An activity with an explicit CalendarObjectId keeps its own value. Fixes the P6 re-import crash reported in #5617 (that issue tracks several Gantt items; this addresses the import AttributeError). Generated with the assistance of an AI coding tool. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
util.element: read property sets inside an IfcPropertySetDefinitionSet ( #6330) get_pset and get_psets assumed RelatingPropertyDefinition is a single property definition and read definition.Name directly. When it is an IfcPropertySetDefinitionSet (a defined type wrapping a list of property set definitions) that attribute access raised AttributeError, so an element whose psets are grouped in a set returned none of them. Unpack IfcPropertySetDefinitionSet into its members in both loops and process each one. Single property definitions and the psets_only and qtos_only filters are unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
PreviousNext