GeometryGym / GeometryGymIFC

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

Readonly #95

Closed BIMAutoDam closed 1 year ago

BIMAutoDam commented 1 year ago

Hi , I found the attribute "HasResults" is read only. Is it possible to attach value for initialize the IfcStructuralAnalysisModel.

image

Best regard

jmirtsch commented 1 year ago

The attributes of a set or list nature intentionally have setters only, some have collection change events subscribed to them. You can't then append a group within the constructor. I'd suggest you add the group to the attribute in a line below as per this: IfcStructuralAnalysisModel model = new IfcStructuralAnalysisModel( ... ); model.HasResults.Add(ifcStructuralResultGroup);