GeometryGym / GeometryGymIFC

C# classes to generate and parse OpenBIM IFC files
Other
282 stars 97 forks source link

Cannot create an IfcCompositeCurve without arguments #38

Closed hu-stefan closed 3 years ago

hu-stefan commented 3 years ago

I´m trying to create an IfcAlignmentHorizontal there for i need an IfcCompositeCurve. But unfortunately its not possible to create an IfcCompositeCurve without arguments. Is there a another way to create it for this special case?

code

I´m using v0.1.06 atm. thank you in advance

jmirtsch commented 3 years ago

The basecurve parameter of type IfcCompositeCurve is generated in the alignment horizontal constructor. So it will be constructed in the code of the alignmenthorizontal constructor. It should work if you change the top line to this:

IfcCompositeCurve basecurve = null;

I haven't checked if you can use a dynamic type using keyword var

hu-stefan commented 3 years ago

I see. Thanks for the fast support.