Skip to content

Fix #7840: Auto-create body context when adding drawing#7868

Open
theoryshaw wants to merge 1 commit intov0.8.0from
automatically_creating_contexts
Open

Fix #7840: Auto-create body context when adding drawing#7868
theoryshaw wants to merge 1 commit intov0.8.0from
automatically_creating_contexts

Conversation

@theoryshaw
Copy link
Copy Markdown
Member

Fix #7840: Auto-create body context when adding drawing

If the Model/Body/MODEL_VIEW context does not exist in the IFC file, get_body_context now creates it (and the Model parent if also missing) rather than returning None and crashing with an AssertionError.

Generated with the assistance of an AI coding tool.

If the Model/Body/MODEL_VIEW context does not exist in the
IFC file, get_body_context now creates it (and the Model
parent if also missing) rather than returning None and
crashing with an AssertionError.

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.

Doing sections

1 participant