{"action":"created","issue":{"url":"https://api.github.com/repos/xBimTeam/XbimPropertySets/issues/1","labels_url":"https://api.github.com/repos/xBimTeam/XbimPropertySets/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/xBimTeam/XbimPropertySets/issues/1/comments","events_url":"https://api.github.com/repos/xBimTeam/XbimPropertySets/issues/1/events","html_url":"https://github.com/xBimTeam/XbimPropertySets/issues/1","id":89222808,"number":1,"title":"Trying to get all Pset properties","user":{"login":"IFChaos","id":12625508,"avatar_url":"https://avatars.githubusercontent.com/u/12625508?v=3","gravatar_id":"","url":"https://api.github.com/users/IFChaos","html_url":"https://github.com/IFChaos","followers_url":"https://api.github.com/users/IFChaos/followers","following_url":"https://api.github.com/users/IFChaos/following{/other_user}","gists_url":"https://api.github.com/users/IFChaos/gists{/gist_id}","starred_url":"https://api.github.com/users/IFChaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IFChaos/subscriptions","organizations_url":"https://api.github.com/users/IFChaos/orgs","repos_url":"https://api.github.com/users/IFChaos/repos","events_url":"https://api.github.com/users/IFChaos/events{/privacy}","received_events_url":"https://api.github.com/users/IFChaos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-18T07:39:12Z","updated_at":"2015-06-20T10:51:13Z","closed_at":null,"body":"Hello\r\n\r\nI'm here again, this time i would like to know what is the correct method to obtain all properties of an object, including properties by type and specific properties of the object.\r\n\r\nAt the moment i'm using this code:\r\n\r\n        if (SelectedText == \"IFCCOLUMN\")\r\n        {\r\n            var TotalColumns = XBModel.Instances.OfType<Xbim.Ifc2x3.SharedBldgElements.IfcColumn>();\r\n            Xbim.Ifc2x3.SharedBldgElements.IfcColumn col = TotalColumns.ElementAt(listBox1.SelectedIndex);\r\n            textBox1.Text = \"\";\r\n            var ifcObj = col as Xbim.Ifc2x3.Kernel.IfcObject;\r\n            var ifcType = Xbim.IO.IfcMetaData.IfcType(ifcObj);\r\n\r\n             Dictionary<IfcLabel, Dictionary<IfcIdentifier, IfcValue>> result = col.GetAllPropertySingleValues();\r\n\r\n             for (int i = 0; i < result.Count; i++)\r\n             {\r\n                 var Meta = result.ElementAt(i).Value;\r\n                 for (int j = 0; j < Meta.Count; j++)\r\n                 {\r\n                     var SubMeta = Meta.ElementAt(j);\r\n                     textBox1.Text += \"\\t\" + SubMeta.Key + \": \" + SubMeta.ToString() + Environment.NewLine;\r\n                 }\r\n             }\r\n        }\r\n\r\nBut i'm sure this is not the best way to do it.\r\n\r\nThank you in advance."},"comment":{"url":"https://api.github.com/repos/xBimTeam/XbimPropertySets/issues/comments/113745109","html_url":"https://github.com/xBimTeam/XbimPropertySets/issues/1#issuecomment-113745109","issue_url":"https://api.github.com/repos/xBimTeam/XbimPropertySets/issues/1","id":113745109,"user":{"login":"IFChaos","id":12625508,"avatar_url":"https://avatars.githubusercontent.com/u/12625508?v=3","gravatar_id":"","url":"https://api.github.com/users/IFChaos","html_url":"https://github.com/IFChaos","followers_url":"https://api.github.com/users/IFChaos/followers","following_url":"https://api.github.com/users/IFChaos/following{/other_user}","gists_url":"https://api.github.com/users/IFChaos/gists{/gist_id}","starred_url":"https://api.github.com/users/IFChaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IFChaos/subscriptions","organizations_url":"https://api.github.com/users/IFChaos/orgs","repos_url":"https://api.github.com/users/IFChaos/repos","events_url":"https://api.github.com/users/IFChaos/events{/privacy}","received_events_url":"https://api.github.com/users/IFChaos/received_events","type":"User","site_admin":false},"created_at":"2015-06-20T10:51:13Z","updated_at":"2015-06-20T10:51:13Z","body":"Hi Martin\r\n\r\nThanks, this method is what i need to generate new properties and i also can obtain the predefined PSETS, this is what i need."}}