Title: Support for editing the properties of P_BOUNDEDVALUE, P_LISTVALUE, and other types · Issue #5195 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Support for editing the properties of P_BOUNDEDVALUE, P_LISTVALUE, and other types · Issue #5195 · IfcOpenShell/IfcOpenShell
X Title: Support for editing the properties of P_BOUNDEDVALUE, P_LISTVALUE, and other types · Issue #5195 · IfcOpenShell/IfcOpenShell
Description: Issue Description Current ifcopenshell.api.pset.edit_pset doesn't support 1) updating IfcPropertyListValue properties, and 2) adding new properties for IfcPropertyBoundedValue type. I'm wondering if the support for these are under develo...
Open Graph Description: Issue Description Current ifcopenshell.api.pset.edit_pset doesn't support 1) updating IfcPropertyListValue properties, and 2) adding new properties for IfcPropertyBoundedValue type. I'm wondering i...
X Description: Issue Description Current ifcopenshell.api.pset.edit_pset doesn't support 1) updating IfcPropertyListValue properties, and 2) adding new properties for IfcPropertyBoundedValue type. I'm won...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/5195
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for editing the properties of P_BOUNDEDVALUE, P_LISTVALUE, and other types","articleBody":"## Issue Description\r\nCurrent ```ifcopenshell.api.pset.edit_pset``` doesn't support 1) updating ```IfcPropertyListValue``` properties, and 2) adding new properties for ```IfcPropertyBoundedValue``` type.\r\n\r\nI'm wondering if the support for these are under development or to be developed in the near future. Thanks.\r\n\r\n```\r\n>>> ifcopenshell.api.pset.edit_pset(model, pset = pset_reinf, properties = {\"Spacing\": (1,1,2,3)}, pset_template = template)\r\nTraceback (most recent call last):\r\n File \"\u003cblender_console>\", line 1, in \u003cmodule>\r\n File \"C:\\Users\\zirui\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\__init__.py\", line 252, in wrapper\r\n result = usecase(*args, **settings)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\zirui\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\pset\\edit_pset.py\", line 166, in edit_pset\r\n return usecase.execute()\r\n ^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\zirui\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\pset\\edit_pset.py\", line 173, in execute\r\n existing_props = self.update_existing_properties()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\zirui\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\pset\\edit_pset.py\", line 230, in update_existing_properties\r\n raise NotImplementedError(f\"Updating '{prop.is_a()}' properties is not supported yet\")\r\nNotImplementedError: Updating 'IfcPropertyListValue' properties is not supported yet\r\n```\r\n\r\n```\r\n>>> ifcopenshell.api.pset.edit_pset(model, pset = pset_tol, properties = {\"length_tol\": (2.01, 3.21)}, pset_template = template)\r\nTraceback (most recent call last):\r\n File \"\u003cblender_console>\", line 1, in \u003cmodule>\r\n File \"C:\\Users\\zirui\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\__init__.py\", line 252, in wrapper\r\n result = usecase(*args, **settings)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\zirui\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\pset\\edit_pset.py\", line 166, in edit_pset\r\n return usecase.execute()\r\n ^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\zirui\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\pset\\edit_pset.py\", line 174, in execute\r\n new_props = self.add_new_properties()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\zirui\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\pset\\edit_pset.py\", line 362, in add_new_properties\r\n raise NotImplementedError(f\"Template type '{pset_template.TemplateType}' is not supported yet\")\r\nNotImplementedError: Template type 'P_BOUNDEDVALUE' is not supported yet\r\n\r\n```\r\n\r\n\r\n## My Configurations\r\nPython: 3.11\r\nifcopenshell: 0.7.11-alpha240809\r\nBlender: 4.2","author":{"url":"https://github.com/ZiruiHong","@type":"Person","name":"ZiruiHong"},"datePublished":"2024-08-19T20:30:16Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/5195"}
| 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:f7235d73-d949-117f-ea0c-a8e4d51a3b6b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B51C:1E34F6:600BA0:81422A:6B04A6FD |
| html-safe-nonce | 906a5248887d671d1dabc70bfd8597172182bc97c7a535df90770ffec4adbc20 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTFDOjFFMzRGNjo2MDBCQTA6ODE0MjJBOjZCMDRBNkZEIiwidmlzaXRvcl9pZCI6IjcyNDk1Mjk5NTQxNzI3MDg2MDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 02377fe7d4df8997ca00158437924674937a94fbf9f745462fe2cc556cfbbd63 |
| hovercard-subject-tag | issue:2474151618 |
| 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/5195/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3d250ca3acba5cbde6142e3f50dcfc207d2be56e6ab5b1f4e77b713f93b08df8/IfcOpenShell/IfcOpenShell/issues/5195 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3d250ca3acba5cbde6142e3f50dcfc207d2be56e6ab5b1f4e77b713f93b08df8/IfcOpenShell/IfcOpenShell/issues/5195 |
| og:image:alt | Issue Description Current ifcopenshell.api.pset.edit_pset doesn't support 1) updating IfcPropertyListValue properties, and 2) adding new properties for IfcPropertyBoundedValue type. I'm wondering i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ZiruiHong |
| 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