Title: BBIM - Bug?- IFC4x3 PredefinedType vs ObjectType of IfcAnnotation · Issue #5314 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: BBIM - Bug?- IFC4x3 PredefinedType vs ObjectType of IfcAnnotation · Issue #5314 · IfcOpenShell/IfcOpenShell
X Title: BBIM - Bug?- IFC4x3 PredefinedType vs ObjectType of IfcAnnotation · Issue #5314 · IfcOpenShell/IfcOpenShell
Description: Hi, When I'm in a project with the IFC4x3 schema, an issue shows when placing annotations. PredefinedType of annotations is filled in on placement (this option doesn't show in IFC4x0 projects). But to give the symbol, text or whatever it...
Open Graph Description: Hi, When I'm in a project with the IFC4x3 schema, an issue shows when placing annotations. PredefinedType of annotations is filled in on placement (this option doesn't show in IFC4x0 projects). But...
X Description: Hi, When I'm in a project with the IFC4x3 schema, an issue shows when placing annotations. PredefinedType of annotations is filled in on placement (this option doesn't show in IFC4x0 projec...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/5314
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BBIM - Bug?- IFC4x3 PredefinedType vs ObjectType of IfcAnnotation","articleBody":"Hi,\r\n\r\nWhen I'm in a project with the IFC4x3 schema, an issue shows when placing annotations. PredefinedType of annotations is filled in on placement (this option doesn't show in IFC4x0 projects). But to give the symbol, text or whatever it's options like being able to put in text, you need to fill in ObjectType (which is filled in by default in 4x0). When you try to type in eg. 'TEXT' it gives an error, but not always.\r\n\r\nFor this issue I tried recreating the problem on purpose but didn't get the error doing exactly the same but a second time. However I had this error show up 2 days ago too doing the same things.\r\n\r\n\r\nSteps:\r\n1. Add an annotation, in this example Text. Typed or untyped doesn't matter.\r\n2. Notice how text gets placed, but no 'Text' word which should be there\r\n3. Only the PredefinedType is visible and filled in\r\n4. The annotation gets dropped in a new Unsorted collection **too**, is this how it should be?\r\n5. I have to type in TEXT in ObjectType to give the proper settings\r\n6. I can still change PredefinedType to eg. LEADER. Is this on purpose?\r\n7. Saving in this case worked, but not always. Now that TEXT is added to ObjectType, PredefinedType changes to USERDEFINED?\r\n8. The 'TEXT' word is added and I can now put in the text. This is working, but seems \r\n\r\n\r\n\r\n\r\n\r\nAfter typing all this I tried one last time with a symbol and it gave me the error (always when clicking 'Save Attributes', even when you delete the 'SYMBOL' text in ObjectType. You need to cancel to go on):\r\n\r\n\r\n\r\n\r\n```\r\nos: Windows\r\nos_version: 10.0.22621\r\npython_version: 3.11.7\r\narchitecture: ('64bit', 'WindowsPE')\r\nmachine: AMD64\r\nprocessor: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel\r\nblender_version: 4.2.1 LTS\r\nbonsai_version: 0.8.0\r\nbonsai_commit_hash: None\r\nlast_actions: \r\n# operator: BIM_OT_load_drawings\r\n# operator: BIM_OT_update_representation\r\n# ifcopenshell.api: geometry.add_representation\r\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 15, \"Name\": null}, \"blender_object\": \"\u003cbpy_struct, Object(\\\"IfcAnnotation/Renvooi symbolen\\\") at 0x000002C7446CD608>\", \"geometry\": \"\u003cbpy_struct, Camera(\\\"15/103\\\") at 0x000002C7446D1C08>\", \"coordinate_offset\": \"None\", \"total_items\": \"1\", \"should_force_faceted_brep\": \"False\", \"should_force_triangulation\": \"False\", \"should_generate_uvs\": \"False\", \"ifc_representation_class\": \"None\", \"profile_set_usage\": \"None\", \"text_literal\": \"None\"}\r\n# ifcopenshell.api: style.assign_representation_styles\r\n>>> {\"shape_representation\": {\"cast_type\": \"entity_instance\", \"value\": 206, \"Name\": null}, \"styles\": \"[]\", \"should_use_presentation_style_assignment\": \"False\"}\r\n# ifcopenshell.api: geometry.unassign_representation\r\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 66, \"Name\": \"Renvooi symbolen\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 103, \"Name\": null}}\r\n# ifcopenshell.api: geometry.remove_representation\r\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 103, \"Name\": null}}\r\n# operator: BIM_OT_edit_attributes\r\n# ifcopenshell.api: attribute.edit_attributes\r\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 110, \"Name\": \"so_kl_nuit\"}, \"attributes\": \"{'GlobalId': '1nhWjqy4n3Rx9an2WkqBpd', 'Name': 'so_kl_nuit', 'Description': None, 'ObjectType': 'SYMBOL', 'PredefinedType': 'SYMBOL'}\"}\r\nlast_error: Traceback (most recent call last):\r\n File \"C:\\Users\\Gebruiker\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\ifc.py\", line 408, in execute_ifc_operator\r\n result = getattr(operator, \"_execute\")(context)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Gebruiker\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\attribute\\operator.py\", line 109, in _execute\r\n ifcopenshell.api.run(\"attribute.edit_attributes\", self.file, product=product, attributes=attributes)\r\n File \"C:\\Users\\Gebruiker\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\__init__.py\", line 92, in run\r\n return usecase_function(ifc_file, should_run_listeners=should_run_listeners, **settings)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Gebruiker\\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\\Gebruiker\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\attribute\\edit_attributes.py\", line 61, in edit_attributes\r\n if relating_type and relating_type.PredefinedType not in (\"NOTDEFINED\", None):\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"C:\\Users\\Gebruiker\\AppData\\Roaming\\Blender Foundation\\Blender\\4.2\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\entity_instance.py\", line 238, in __getattr__\r\n raise AttributeError(\r\nAttributeError: entity instance of type 'IFC4X3_ADD2.IfcTypeProduct' has no attribute 'PredefinedType'\r\n\r\nifc: Template-tijdelijk.ifc\r\nschema: IFC4X3\r\npreprocessor_version: IfcOpenShell 0.8.0\r\noriginating_system: Bonsai 0.8.0\r\n```\r\n\r\n\r\nIn conclusion I don't know how to always trigger the error, but this is the best I could discover","author":{"url":"https://github.com/jes-r","@type":"Person","name":"jes-r"},"datePublished":"2024-09-05T07:16:27Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/5314"}
| 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:f2549cf6-658b-b780-f2a6-785401ae710e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E882:3047DC:218043:2C9162:6B04B4E3 |
| html-safe-nonce | 2cfc8908e2f0ac4fbc9ffa2823c4b6eab9b82745e0667f072c854247bae5e873 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODgyOjMwNDdEQzoyMTgwNDM6MkM5MTYyOjZCMDRCNEUzIiwidmlzaXRvcl9pZCI6IjI3MDc3MjA5NjA5ODE1MzY5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d25a9af9400e0f14390604e0970b0c09a517325b5b7c04dcc8bb2d73ea06685f |
| hovercard-subject-tag | issue:2506969592 |
| 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/5314/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2b973214490733988d362b6c5191757934fd91a651e26da9c12cd5e756a7339/IfcOpenShell/IfcOpenShell/issues/5314 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2b973214490733988d362b6c5191757934fd91a651e26da9c12cd5e756a7339/IfcOpenShell/IfcOpenShell/issues/5314 |
| og:image:alt | Hi, When I'm in a project with the IFC4x3 schema, an issue shows when placing annotations. PredefinedType of annotations is filled in on placement (this option doesn't show in IFC4x0 projects). But... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jes-r |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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