Open SerafinaM opened 1 year ago
You create IFCARBITRARYPROFILEDEFWITHVOIDS
, but then you actually don't assign it anywhere. More importantly, every profile needs to be 2D. The rule is defined in the schema:
WHERE
WR1 : OuterCurve.Dim = 2;
Just leave out the Z coordinate from the point list:
var pointList_frame = model.Instances.New<IfcCartesianPointList3D>(pl =>
{
pl.CoordList.GetAt(0).AddRange(new IfcLengthMeasure[] { 0, 0});
pl.CoordList.GetAt(1).AddRange(new IfcLengthMeasure[] { 0, ext_thick});
pl.CoordList.GetAt(2).AddRange(new IfcLengthMeasure[] { ext_width, ext_thick});
pl.CoordList.GetAt(3).AddRange(new IfcLengthMeasure[] { ext_width, 0});
});
I attempted to generate a solid object by following a designated path while utilizing a profile of my choosing. The build completed successfully without any errors. But I am unable to open the ifc file that was created.
This is the code I used:
I added ifc file that was created. Thanks in advance. TestElement.txt