A proposal for viewing IfcSpaces in drawings.
I think IfcSpaces should not be hardcoded to not print on drawings.
There are use cases for making drawings that just show spaces, like early diagramatic spatial studies and/or other types of color coordinated spatial plans.
...
Is it just a matter of removing this?
https://github.com/IfcOpenShell/IfcOpenShell/blob/031540e982337b82eab5d8d5f50402cb78796feb/src/bonsai/bonsai/tool/drawing.py#L1816C13-L1816C89
...
thoughts?
Comments
I agree, hardcoding to not print seems like a proprietary software behaviour.
Default to not print but allowing the user to choose otherwise
But they do print? They are just set to be transparent by CSS, just the other day I made a color coded plan.

The only thing that bothers me is that they print on the top so you have to make them partly transparent to show your furniture.
i might be missing something, but i can't get the following space to show in the drawings.
i was able to do some tests.
For an IfcSpace to show up, the drawing needs to 'cut' it.
They don't show up in projection, as the following video illustrates.
...
There's a weird behavior too, where if IfcSpace is the only object in the drawing, it will not show up. This is illustrated later in the video.
Ok. I don't see any use case for showing spaces in projection, but it is rather arbitrary.
The order of elements bothers me though., especially because it can't by changed by css z-index in svg.
By the way, does this work for you? https://github.com/IfcOpenShell/IfcOpenShell/issues/6405
A couple drawing examples that would require seeing ifcspaces in projection.



It would be great to see Bonsai with the capability to generate a colour scheme with spaces. What I do is use spaces to set a light tone colour for floor plans. The only problem with that is the door openings are not filled with spaces so they don't get shaded thereby leaving these white spaces wherever the door openings are.