From 08d725c328861f82d31a51c2b0dd512c939a08e7 Mon Sep 17 00:00:00 2001 From: emvivre Date: Sat, 8 Apr 2017 22:14:46 +0200 Subject: [PATCH 1/2] Fix a typo bug in HelloWall/HelloWallExample.cs --- HelloWall/HelloWallExample.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HelloWall/HelloWallExample.cs b/HelloWall/HelloWallExample.cs index a10efcc..06a010e 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; } From 845fe99082e58d38b7cb716640ea5877e01ca89a Mon Sep 17 00:00:00 2001 From: emvivre Date: Sat, 8 Apr 2017 22:20:06 +0200 Subject: [PATCH 2/2] Remove useless variable in HelloWallExample.cs --- HelloWall/HelloWallExample.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/HelloWall/HelloWallExample.cs b/HelloWall/HelloWallExample.cs index 06a010e..b8445ce 100644 --- a/HelloWall/HelloWallExample.cs +++ b/HelloWall/HelloWallExample.cs @@ -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;