{"action":"created","issue":{"url":"https://api.github.com/repos/xBimTeam/XbimWebUI/issues/183","repository_url":"https://api.github.com/repos/xBimTeam/XbimWebUI","labels_url":"https://api.github.com/repos/xBimTeam/XbimWebUI/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/xBimTeam/XbimWebUI/issues/183/comments","events_url":"https://api.github.com/repos/xBimTeam/XbimWebUI/issues/183/events","html_url":"https://github.com/xBimTeam/XbimWebUI/issues/183","id":323659913,"number":183,"title":"Hide all entities of a Domain","user":{"login":"MarcoGiorgi","id":7655651,"avatar_url":"https://avatars1.githubusercontent.com/u/7655651?v=4","gravatar_id":"","url":"https://api.github.com/users/MarcoGiorgi","html_url":"https://github.com/MarcoGiorgi","followers_url":"https://api.github.com/users/MarcoGiorgi/followers","following_url":"https://api.github.com/users/MarcoGiorgi/following{/other_user}","gists_url":"https://api.github.com/users/MarcoGiorgi/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoGiorgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoGiorgi/subscriptions","organizations_url":"https://api.github.com/users/MarcoGiorgi/orgs","repos_url":"https://api.github.com/users/MarcoGiorgi/repos","events_url":"https://api.github.com/users/MarcoGiorgi/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoGiorgi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-16T14:58:31Z","updated_at":"2018-05-16T16:04:50Z","closed_at":null,"author_association":"NONE","body":"Is there a way to hide an entire \"Domain\"?\r\nI'd like to show the complete model, with \"Electrical Domain\", \"HVAC Domain\", etc...\r\nOnce loaded, I'd like to hide/show all the entities of a particular domain.\r\n\r\nI've found example and documentation about _viewer.setState(state, type)_ but nothing about a way to hide a whole set of entities of a particular domain.\r\n"},"comment":{"url":"https://api.github.com/repos/xBimTeam/XbimWebUI/issues/comments/389574363","html_url":"https://github.com/xBimTeam/XbimWebUI/issues/183#issuecomment-389574363","issue_url":"https://api.github.com/repos/xBimTeam/XbimWebUI/issues/183","id":389574363,"user":{"login":"MarcoGiorgi","id":7655651,"avatar_url":"https://avatars1.githubusercontent.com/u/7655651?v=4","gravatar_id":"","url":"https://api.github.com/users/MarcoGiorgi","html_url":"https://github.com/MarcoGiorgi","followers_url":"https://api.github.com/users/MarcoGiorgi/followers","following_url":"https://api.github.com/users/MarcoGiorgi/following{/other_user}","gists_url":"https://api.github.com/users/MarcoGiorgi/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcoGiorgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcoGiorgi/subscriptions","organizations_url":"https://api.github.com/users/MarcoGiorgi/orgs","repos_url":"https://api.github.com/users/MarcoGiorgi/repos","events_url":"https://api.github.com/users/MarcoGiorgi/events{/privacy}","received_events_url":"https://api.github.com/users/MarcoGiorgi/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T16:04:50Z","updated_at":"2018-05-16T16:04:50Z","author_association":"NONE","body":"Thanks Martin,\r\n\r\nSo I could retrieve the Types, server side, with the following code, i.e. for **electrical domain**:\r\n`var types = typeof(IfcProduct).Assembly.GetTypes().Where(t => t.Namespace == \"Xbim.Ifc4.ElectricalDomain\");`\r\nand then pass the \"_typeID_\" array of types to hide.\r\n\r\nMy problem is that I'm not able to understand which is the property to read server side to get the ID needed by the _viewer.setState()_ method, any suggestion?\r\n"}}
{"actor":{"display_login":"MarcoGiorgi"}}