Title: How can I move all the elements that are in the wall when the wall moves? · Issue #3191 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: How can I move all the elements that are in the wall when the wall moves? · Issue #3191 · IfcOpenShell/IfcOpenShell
X Title: How can I move all the elements that are in the wall when the wall moves? · Issue #3191 · IfcOpenShell/IfcOpenShell
Description: Is it possible if I have created the wall with an opening element and placed a fixed one there, so that when I move the wall the window also moves. At the moment only the wall with its opening is moved. I use the python api for this, but...
Open Graph Description: Is it possible if I have created the wall with an opening element and placed a fixed one there, so that when I move the wall the window also moves. At the moment only the wall with its opening is m...
X Description: Is it possible if I have created the wall with an opening element and placed a fixed one there, so that when I move the wall the window also moves. At the moment only the wall with its opening is m...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/3191
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How can I move all the elements that are in the wall when the wall moves?","articleBody":"Is it possible if I have created the wall with an opening element and placed a fixed one there, so that when I move the wall the window also moves. At the moment only the wall with its opening is moved. I use the python api for this, but it would also be interesting to know the whole thing for c++ :-).\r\n\r\n```py\r\n # moves the wall into the edit position for create opening and window\r\n run(\"geometry.edit_object_placement\", model, product=wall, matrix=MatOrgin)\r\n # crate opening\r\n op = run(\"root.create_entity\", self.model, ifc_class=\"IfcOpeningElement\")\r\n # crate geometrie\r\n repsOp = run(\"geometry.add_wall_representation\", model, context=sbody,\r\n length=length, height=height, thickness=thickness)\r\n run(\"geometry.assign_representation\", model, product=op, representation=repsOp)\r\n matrix = np.identity(4)\r\n matrix[:, 3] = [x, y, z, 0]\r\n\r\n run(\"geometry.edit_object_placement\", model, product=opening, matrix=matrix)\r\n # The opening will now void the wall.\r\n run(\"void.add_opening\", model, opening=opening, element=wall)\r\n win = run(\"root.create_entity\", model, ifc_class=\"IfcWindow\", name=\"Window\")\r\n\r\n repsWin1 = run(\"geometry.add_wall_representation\", model, context=body,\r\n length=length, height=height, thickness=thickness)\r\n\r\n run(\"geometry.assign_representation\", model, product=win, representation=repsWin1)\r\n run(\"geometry.edit_object_placement\", model, product=win, matrix=matrix)\r\n\r\n # moves the wall into the right position\r\n run(\"geometry.edit_object_placement\", model, product=wall, matrix=wallMat, should_transform_children=True)\r\n\r\n```\r\n\r\nIf I move the wall back to its correct position at the end, the window still remains in the old position.\r\nHow can I solve the problem even if I move the wall in Blender the same problem occurs?\r\n\r\n\r\n\r\nIn Blender there is a relation where you can assign the window to the wall.\r\nIsn't there something like that in the Ifcopenshell too?\r\n\r\nThank you for your time and attention.\r\n\r\n","author":{"url":"https://github.com/Theinformatiker","@type":"Person","name":"Theinformatiker"},"datePublished":"2023-05-24T08:41:23Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/3191"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2e758dbe-d44e-4dce-5bc3-fb253558494b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5BE:2009FB:5FD56E:867F3C:6B04771D |
| html-safe-nonce | 8e549d4ffc413f0f24edbaedaccf83373d96b210de5bb9345082675b7804c0a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUJFOjIwMDlGQjo1RkQ1NkU6ODY3RjNDOjZCMDQ3NzFEIiwidmlzaXRvcl9pZCI6IjkwMDkwNzYxMzU3Njk5NjIyNzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 28f598f0bc9adf8a230364e7a5130969066f6cbf3c07ea986bf40197f0aceb16 |
| hovercard-subject-tag | issue:1723474069 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/3191/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5133fe7c192cdac69fe1430964c9cd61a95a73f9024231666cd094e90143e354/IfcOpenShell/IfcOpenShell/issues/3191 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5133fe7c192cdac69fe1430964c9cd61a95a73f9024231666cd094e90143e354/IfcOpenShell/IfcOpenShell/issues/3191 |
| og:image:alt | Is it possible if I have created the wall with an opening element and placed a fixed one there, so that when I move the wall the window also moves. At the moment only the wall with its opening is m... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Theinformatiker |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width