Skip to content

Fix remove_drawing crash on corrupted drawing#8123

Open
theoryshaw wants to merge 1 commit into
v0.8.0from
fix/remove-drawing-corrupted
Open

Fix remove_drawing crash on corrupted drawing#8123
theoryshaw wants to merge 1 commit into
v0.8.0from
fix/remove-drawing-corrupted

Conversation

@theoryshaw

Copy link
Copy Markdown
Member

Fix #8122: Guard get_sheet_references against a missing document reference. Guard remove_drawing against a missing document association to skip the document/file cleanup steps. Fall back to direct entity removal when the drawing's group association is also missing, so the IFC entity is purged and the Drawings panel refreshes correctly.

Generated with the assistance of an AI coding tool.

Fix #8122: Guard get_sheet_references against a missing document reference.
Guard remove_drawing against a missing document association to skip
the document/file cleanup steps. Fall back to direct entity removal
when the drawing's group association is also missing, so the IFC
entity is purged and the Drawings panel refreshes correctly.

Generated with the assistance of an AI coding tool.
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.

Can't bim.remove_drawing a corrupt drawing

1 participant