Hey, im trying to make simplest infrastructure file, to practice designing with ifcopenshell. I thougth that bonsai can display it, but only alignment is displayed. Validation on bsi goes ok. Someone can tell me what i'm doing wrong?
Hey, im trying to make simplest infrastructure file, to practice designing with ifcopenshell. I thougth that bonsai can display it, but only alignment is displayed. Validation on bsi goes ok. Someone can tell me what i'm doing wrong?
Yes, bonsai does support IfcSectionedSolidHorizontal. I took a look at your file but could not determine what needs to be revised. I confirmed that it is an issue with your data and not something in bonsai. ifcopenshell.geom.create_shape() returns an empty object. A few things I had suspected:
You use IfcCompositeCurve #53 as the directrix which is 2D and might not generate 3D geometry. However changing to IfcGradientCurve #63 did not solve it.
You use IFCPARAMETERVALUE(200.) and (500.) for DistanceAlong on the linear placement of the cross sections. I experimented with changing these to be IFCLENGTHMEASURE since the overall alignment is ~993m. However adjusting to this data type causes a segfault.
I have attached a working example that does display correctly in bonsai. Hopefully this helps with debugging your model.
Now I see that my IfcAlignmentSegment have no ObjectPlacement. I though that if i have local placement at base object - IfcAlignment, that's enough. It's meens that every nested object should have the same local placement?
Login or Register to reply.