Title: CAD Tool: weird outcome for resize by moving endpoint · Issue #7975 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: CAD Tool: weird outcome for resize by moving endpoint · Issue #7975 · IfcOpenShell/IfcOpenShell
X Title: CAD Tool: weird outcome for resize by moving endpoint · Issue #7975 · IfcOpenShell/IfcOpenShell
Description: Bug Description Exiting CAD Tool mode the edit operation ends up doing some weird things, maybe due to snaps? Not sure why this is happening. I've been wrong guessing it is to do with the part origin or orientation, and after moving obje...
Open Graph Description: Bug Description Exiting CAD Tool mode the edit operation ends up doing some weird things, maybe due to snaps? Not sure why this is happening. I've been wrong guessing it is to do with the part orig...
X Description: Bug Description Exiting CAD Tool mode the edit operation ends up doing some weird things, maybe due to snaps? Not sure why this is happening. I've been wrong guessing it is to do with the part ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7975
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CAD Tool: weird outcome for resize by moving endpoint","articleBody":"### Bug Description\n\nExiting CAD Tool mode the edit operation ends up doing some weird things, maybe due to snaps? Not sure why this is happening. I've been wrong guessing it is to do with the part origin or orientation, and after moving objects around to where they don't snap to anything sometimes it completes successfully.\n\n### Attachments\n\n\u003cimg width=\"973\" height=\"685\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/235288ff-5fba-4fa8-89c8-962adc2b0cd4\" />\n\n1. With [cad superpower resize bug.zip](https://github.com/user-attachments/files/26915018/cad.superpower.resize.bug.zip) `cad superpower resize bug.ifc`\n\n\u003cimg width=\"973\" height=\"685\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f83b9ca5-bdd0-42fb-8249-f7e6565eb25a\" />\n\n2. Select rafter to change length of, goal is to shorten ending where long beam intersects\n\n\u003cimg width=\"973\" height=\"685\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c17a02c9-8b16-4e10-88e1-0f74a4297591\" />\n\n3. `Spacebar` to enter CAD Tool\n\n\u003cimg width=\"1106\" height=\"685\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/c89deecd-ece2-4a2c-99d5-9dbd44b54d4a\" />\n\n4. Snaps are on.\n\n\u003cimg width=\"973\" height=\"685\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/79ea7d76-27a7-4589-8716-9905420c7904\" />\n\n5. Select endpoint to be moved for task of changing length.\n\n\u003cimg width=\"1106\" height=\"685\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/f9a1e336-f80d-4cfc-9237-9a80b3c8f32d\" />\n\n6. `G`,`Y` to grab and constrain on Y-axis, bringing magnet snap close to intersecting beam.\n\n\u003cimg width=\"1106\" height=\"685\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/b10a1c79-a6e0-4788-a12f-027a5b6fb90c\" />\n\n7. Click to confirm\n\n\u003cimg width=\"1106\" height=\"685\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/780be180-d9ca-43fe-9af0-5e96fc5b5a20\" />\n\n8. `Spacebar` or `Tab` to toggle out of CAD Tool. Sometimes it works as expected, or else the object moves or otherwise reverts to its previous length at an unexpected position. It should be shorter here.\n\n### Debug and Error Output\n\n```true\nos: Linux\nos_version: #1 SMP PREEMPT_DYNAMIC Debian 6.19.11-1 (2026-04-05)\npython_version: 3.13.9\narchitecture: ('64bit', 'ELF')\nmachine: x86_64\nprocessor: \nblender_version: 5.1.0\nbonsai_version: 0.8.6-alpha260420\nbonsai_commit_hash: 520a0f9\nbonsai_commit_date: 2026-04-20T18:02:31+02:00\nbonsai_git_branch: build-0.8.6-alpha2604201801\nlast_actions: \n# operator: BIM_OT_save_project\n# operator: BIM_OT_direct_profile_edit\n# operator: BIM_OT_enable_editing_extrusion_axis\n# operator: BIM_OT_direct_profile_edit\n# operator: BIM_OT_enable_editing_extrusion_axis\n# operator: BIM_OT_direct_profile_edit\n# operator: BIM_OT_edit_extrusion_axis\n# ifcopenshell.api: geometry.disconnect_path\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 27156, \"Name\": \"Beam\"}, \"connection_type\": \"ATEND\"}\n# ifcopenshell.api: geometry.add_axis_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 25, \"Name\": null}, \"axis\": \"[Vector((4.415356897879974e-07, -1.3883366456468593e-08, -0.0698506161570549)), Vector((6.919669885974145e-07, -3.099124512573326e-08, 3.314699649810791))]\"}\n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 27156, \"Name\": \"Beam\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 32295, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 32295, \"Name\": null}}\n# ifcopenshell.api: geometry.add_profile_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 24, \"Name\": null}, \"profile\": {\"cast_type\": \"entity_instance\", \"value\": 23339, \"Name\": null}, \"depth\": \"3.314699846030551\", \"cardinal_point\": \"5\", \"clippings\": \"[]\", \"placement_zx_axes\": \"((0.0, 0.0, 1.0), (1.0, 0.0, 0.0))\"}\n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 27156, \"Name\": \"Beam\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 32302, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 32302, \"Name\": null}}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 27156, \"Name\": \"Beam\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 1.5634869565466988e-14, -7.399249568607047e-08, 8.127999305725098], [-7.399249568607047e-08, 7.549790126404332e-08, -1.0, 6.851644039154053], [-1.0048591563601838e-14, 1.0, 7.549790126404332e-08, -0.631774365901947], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 27156, \"Name\": \"Beam\"}}\nlast_error: None\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: /home/es/Documents/BBIM/bugreport-cadresize/cad superpower resize bug.ifc\nifc_is_dirty: True\nifc: cad superpower resize bug.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.6-alpha260420\noriginating_system: BonsaiPR 0.8.6-alpha260420-520a0f9\n```","author":{"url":"https://github.com/eshattow","@type":"Person","name":"eshattow"},"datePublished":"2026-04-21T01:03:13Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7975"}
| 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:2a20cc9c-d374-0811-6c02-7dc8f0e58f00 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE44:151289:6CCE8A:920E8B:6B04A9E1 |
| html-safe-nonce | cb75840861e0763cd732529b7a8c3b9559c0bee32014547d680989a2d037521c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTQ0OjE1MTI4OTo2Q0NFOEE6OTIwRThCOjZCMDRBOUUxIiwidmlzaXRvcl9pZCI6IjI3NDgyNDQxNTQ1MzM1ODc0MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 38e66f9c1c5cd3ce21f0a7a936fdfaa3b83d48d5b0289d6462855af0f07a7328 |
| hovercard-subject-tag | issue:4299609022 |
| 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/7975/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6314a58a1f4d505841a327e5bbe63644b501f24a12a17bb35e01f878b4239efa/IfcOpenShell/IfcOpenShell/issues/7975 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6314a58a1f4d505841a327e5bbe63644b501f24a12a17bb35e01f878b4239efa/IfcOpenShell/IfcOpenShell/issues/7975 |
| og:image:alt | Bug Description Exiting CAD Tool mode the edit operation ends up doing some weird things, maybe due to snaps? Not sure why this is happening. I've been wrong guessing it is to do with the part orig... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | eshattow |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| 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