diff --git a/HelloWall/HelloWallExample.cs b/HelloWall/HelloWallExample.cs index a10efcc..b8445ce 100644 --- a/HelloWall/HelloWallExample.cs +++ b/HelloWall/HelloWallExample.cs @@ -108,7 +108,7 @@ private static IfcBuilding CreateBuilding(IfcStore model, string name) placement.Location = model.Instances.New(p=>p.SetXYZ(0,0,0)); //get the project there should only be one and it should exist var project = model.Instances.OfType().FirstOrDefault(); - project?.AddBuilding(building); + project.AddBuilding(building); txn.Commit(); return building; } @@ -379,16 +379,7 @@ private static void CreateSimpleProperty(IfcStore model, IfcWallStandardCase wal prv.Name = "IfcPropertyReferenceValue:Material"; prv.PropertyReference = ifcMaterial; }); - - - var ifcMaterialList = model.Instances.New(ml => - { - ml.Materials.Add(ifcMaterial); - ml.Materials.Add(model.Instances.New(m =>{m.Name = "Cavity";})); - ml.Materials.Add(model.Instances.New(m => { m.Name = "Block"; })); - }); - - + var ifcMaterialLayer = model.Instances.New(ml => { ml.Material = ifcMaterial;