Skip to content

Modified delete_container to delete all things inside it#7837

Open
paragforwork wants to merge 2 commits intoIfcOpenShell:v0.8.0from
paragforwork:spatial_containers_delete
Open

Modified delete_container to delete all things inside it#7837
paragforwork wants to merge 2 commits intoIfcOpenShell:v0.8.0from
paragforwork:spatial_containers_delete

Conversation

@paragforwork
Copy link
Copy Markdown
Contributor

@paragforwork paragforwork commented Mar 23, 2026

Fixes: #7767
Implemented true container cascade delete in delete_container.
Added dependent auto-annotation cleanup (including SECTION_LEVEL) before deleting referenced spatial elements.
Added post-delete default-container normalization (reassign to valid container or clear if none) to prevent stale default references.
Batched spatial tree refresh to a single import at the end (avoids repeated rebuilds/freezes).

Added detailed/updated core tests for cascade behavior, scope filtering, and default-container normalization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When deleting a spatial container, delete all those 'inside' it.

1 participant