Custom IfcWindowType won't pick a representation when opening the file
Bit of a strange one. I have a custom window type I've created as a SKYLIGHT. When creating it I did futz around with the representations and deleted everything except the Model/Body/MODEL_VIEW, and it seems I broke something in the file. The reason for doing this being that a regular window footprint doesn't work for a skylight tilted at an angle. Now when opening the file, no representation is initially picked for the instances of this type, so I just have the manually cut roof hole, minus skylight. Now, I can go in and activate the representation for the instance/type, and this is fine until the next time I reload the file. If I forget to do this then any created drawings are missing the skylight, until I have activated the representation. I'd prefer not to recreate the window type from scratch if there's a simple fix. I've tried "Manually Save Representation" and "Convert to Tessellation"... no effect. I've tried inspecting with the Debug panel, comparing it to a differently width-ed (but working) sibling. Even looking at that, I can't see an obvious culprit.
Has anyone seen or solved this before? How to set the default representation used at loading? I'm usually pretty good at figuring things out myself, but this is vexing me.
Comments
Can you share the IFC file or pared down version of it?
Hopefully I stripped everything identifiable out. It just has the roof, a couple of skylight instances and the skylight types. The smaller skylight is the one causing problems. Setting the active representation on either the instance or the type will show the geometry. Save the ifc file, reload it, and the skylight is not represented again.
[Edit] Updated file added
Huh... Well there's something interesting. If I delete the instance, the type starts to behave as expected. I can then create a new instance, and the new instance is properly represented after a save/load cycle. How... odd.
As a solution has presented itself, this is probably best left to those with too much time on their hands, who just can't leave unsolved puzzles alone.
yes, is weird. Probably worth posting a bug, however.