{"action":"created","issue":{"url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/178","repository_url":"https://api.github.com/repos/xBimTeam/XbimEssentials","labels_url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/178/comments","events_url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/178/events","html_url":"https://github.com/xBimTeam/XbimEssentials/issues/178","id":332029118,"node_id":"MDU6SXNzdWUzMzIwMjkxMTg=","number":178,"title":"how to change properties and save with XbimEssentials","user":{"login":"mbow1","id":24434347,"node_id":"MDQ6VXNlcjI0NDM0MzQ3","avatar_url":"https://avatars3.githubusercontent.com/u/24434347?v=4","gravatar_id":"","url":"https://api.github.com/users/mbow1","html_url":"https://github.com/mbow1","followers_url":"https://api.github.com/users/mbow1/followers","following_url":"https://api.github.com/users/mbow1/following{/other_user}","gists_url":"https://api.github.com/users/mbow1/gists{/gist_id}","starred_url":"https://api.github.com/users/mbow1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbow1/subscriptions","organizations_url":"https://api.github.com/users/mbow1/orgs","repos_url":"https://api.github.com/users/mbow1/repos","events_url":"https://api.github.com/users/mbow1/events{/privacy}","received_events_url":"https://api.github.com/users/mbow1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-13T14:47:15Z","updated_at":"2018-06-20T15:59:47Z","closed_at":null,"author_association":"NONE","body":"hi !\r\n\r\nit's been 2 weeks that I try to close a window with this code but I can not.\r\nmy goal is to change the value of the property \"Vent opening angle\" to \"0\" but it does not pass. I'm putting screenshots to you if someone has the solution please.\r\nand sorry for my english I'm not English speaking.\r\nthank you in advance\r\n\r\n\r\n\r\n        static void Main(string[] args)\r\n        {\r\n            const string fileName = \"SampleHouse.ifc\"; //this can be either IFC2x3 or IFC4\r\n\r\n            var model = IfcStore.Open(fileName, null, -1);\r\n\r\n            using (var txn = model.BeginTransaction(\"Properties\"))\r\n            {\r\n                var wall = model.Instances.OfType<IfcWindow>().FirstOrDefault();\r\n\r\n             \r\n\r\n                var prop = model.Instances.New<IfcPropertySingleValue>(p =>{\r\n                    p.Name = \"Vent opening angle\";\r\n                   // IfcValue valeur = \"0\";\r\n                    //p.NominalValue = valeur;\r\n                    p.NominalValue = new IfcInteger(0);\r\n                });\r\n\r\n                var pSet = model.Instances.New<IfcPropertySet>(ps =>\r\n                {\r\n                    ps.Name = \"Vent opening angle\"; //this SHOULDN'T start with 'Pset_'\r\n                    //ps.HasProperties.Add_Reversible(prop);\r\n                    ps.HasProperties.Add(prop);\r\n                });\r\n                wall.AddPropertySet(pSet);\r\n                txn.Commit();\r\n            }\r\n            model.SaveAs(\"model.ifc\");\r\n\r\n            \r\n        }\r\n\r\n\r\n\r\n![forum](https://user-images.githubusercontent.com/24434347/41358664-c4c537ba-6f20-11e8-8366-c7f34dc8cca3.PNG)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/comments/398803373","html_url":"https://github.com/xBimTeam/XbimEssentials/issues/178#issuecomment-398803373","issue_url":"https://api.github.com/repos/xBimTeam/XbimEssentials/issues/178","id":398803373,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODgwMzM3Mw==","user":{"login":"martin1cerny","id":773078,"node_id":"MDQ6VXNlcjc3MzA3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/773078?v=4","gravatar_id":"","url":"https://api.github.com/users/martin1cerny","html_url":"https://github.com/martin1cerny","followers_url":"https://api.github.com/users/martin1cerny/followers","following_url":"https://api.github.com/users/martin1cerny/following{/other_user}","gists_url":"https://api.github.com/users/martin1cerny/gists{/gist_id}","starred_url":"https://api.github.com/users/martin1cerny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martin1cerny/subscriptions","organizations_url":"https://api.github.com/users/martin1cerny/orgs","repos_url":"https://api.github.com/users/martin1cerny/repos","events_url":"https://api.github.com/users/martin1cerny/events{/privacy}","received_events_url":"https://api.github.com/users/martin1cerny/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T15:59:47Z","updated_at":"2018-06-20T15:59:47Z","author_association":"MEMBER","body":"Not sure what you mean but you can certainly use xBIM to create any IFC geometry you like or to change existing data in the model."}}
{"actor":{"display_login":"martin1cerny"}}