Title: Error when assigning objects to IfcGroup · Issue #2299 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Error when assigning objects to IfcGroup · Issue #2299 · IfcOpenShell/IfcOpenShell
X Title: Error when assigning objects to IfcGroup · Issue #2299 · IfcOpenShell/IfcOpenShell
Description: Steps to create error: self.settings["products"] = [#144069=IfcWallStandardCase('3qMdsXfXrAvuL60mUR_8Vj',#12,'Wand-007',$,$,#144022,#144064,'B1536A06-39C4-4386-B8-F3-7CED7195FF1F',$)] self.settings["group"] = #259882=IfcGroup('2sEC$H11H3...
Open Graph Description: Steps to create error: self.settings["products"] = [#144069=IfcWallStandardCase('3qMdsXfXrAvuL60mUR_8Vj',#12,'Wand-007',$,$,#144022,#144064,'B1536A06-39C4-4386-B8-F3-7CED7195FF1F',$)] self.settings...
X Description: Steps to create error: self.settings["products"] = [#144069=IfcWallStandardCase('3qMdsXfXrAvuL60mUR_8Vj',#12,'Wand-007',$,$,#144022,#144064,'B1536A06-39C4-4386-B8-F3-7...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/2299
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when assigning objects to IfcGroup","articleBody":"Steps to create error:\r\n\r\nself.settings[\"products\"] = `[#144069=IfcWallStandardCase('3qMdsXfXrAvuL60mUR_8Vj',#12,'Wand-007',$,$,#144022,#144064,'B1536A06-39C4-4386-B8-F3-7CED7195FF1F',$)]`\r\n\r\nself.settings[\"group\"] = `#259882=IfcGroup('2sEC$H11H3FgTCrHgCRTku',$,'test',$,$)`\r\n\r\n```\r\nself.file.create_entity(\r\n \"IfcRelAssignsToGroup\",\r\n **{\r\n \"GlobalId\": ifcopenshell.guid.new(),\r\n \"OwnerHistory\": ifcopenshell.api.run(\"owner.create_owner_history\", self.file),\r\n \"RelatedObjects\": self.settings[\"products\"],\r\n \"RelatingGroup\": self.settings[\"group\"],\r\n }\r\n )\r\n```\r\n\r\nError:\r\n```\r\nlocation: \u003cunknown location>:-1\r\nError: Python: Traceback (most recent call last):\r\n File \"C:\\Users\\vpaji\\AppData\\Roaming\\Blender Foundation\\Blender\\3.1\\scripts\\addons\\blenderbim\\bim\\module\\search\\operator.py\", line 669, in execute\r\n ifcopenshell.api.run(\"group.assign_group\", self.file, **{\"products\": objects, \"group\": group})\r\n File \"C:\\Users\\vpaji\\AppData\\Roaming\\Blender Foundation\\Blender\\3.1\\scripts\\addons\\blenderbim\\libs\\site\\packages\\ifcopenshell\\api\\__init__.py\", line 66, in run\r\n result = usecase_class(ifc_file, **settings).execute()\r\n File \"C:\\Users\\vpaji\\AppData\\Roaming\\Blender Foundation\\Blender\\3.1\\scripts\\addons\\blenderbim\\libs\\site\\packages\\ifcopenshell\\api\\group\\assign_group.py\", line 35, in execute \r\n return self.file.create_entity(\r\n File \"C:\\Users\\vpaji\\AppData\\Roaming\\Blender Foundation\\Blender\\3.1\\scripts\\addons\\blenderbim\\libs\\site\\packages\\ifcopenshell\\file.py\", line 276, in create_entity\r\n e[idx] = arg\r\n File \"C:\\Users\\vpaji\\AppData\\Roaming\\Blender Foundation\\Blender\\3.1\\scripts\\addons\\blenderbim\\libs\\site\\packages\\ifcopenshell\\entity_instance.py\", line 196, in __setitem__ \r\n self.method_list[idx](self.wrapped_data, idx, entity_instance.unwrap_value(value)) \r\n File \"C:\\Users\\vpaji\\AppData\\Roaming\\Blender Foundation\\Blender\\3.1\\scripts\\addons\\blenderbim\\libs\\site\\packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 4872, in setArgumentAsAggregateOfEntityInstance\r\n return _ifcopenshell_wrapper.entity_instance_setArgumentAsAggregateOfEntityInstance(self, i, v)\r\nTypeError: Attribute of type AGGREGATE OF ENTITY INSTANCE needs a python sequence of entity instances\r\n\r\nlocation: \u003cunknown location>:-1\r\n```\r\n","author":{"url":"https://github.com/vulevukusej","@type":"Person","name":"vulevukusej"},"datePublished":"2022-07-20T09:13:17Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/2299"}
| 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:26d96c4f-2023-f439-e5f5-0a0233e0d2e5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A430:1F9F68:726595:9C947A:6B0479BC |
| html-safe-nonce | 93129a25ab034924ba3b4ecabf2f84a4c08c4da51352754a62397b423ba73d60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDMwOjFGOUY2ODo3MjY1OTU6OUM5NDdBOjZCMDQ3OUJDIiwidmlzaXRvcl9pZCI6IjE3MjI4MTQ5MjI5OTc2NjAwOTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 13e0e5dc77c658e89e58d58ea44a63bf7d1eb8708fef34f08c496b86fd8f080d |
| hovercard-subject-tag | issue:1310718853 |
| 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/2299/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a44227c1315d20be3636d6aaeba14156dda5fc2c6784422185dea418a03f3e9b/IfcOpenShell/IfcOpenShell/issues/2299 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a44227c1315d20be3636d6aaeba14156dda5fc2c6784422185dea418a03f3e9b/IfcOpenShell/IfcOpenShell/issues/2299 |
| og:image:alt | Steps to create error: self.settings["products"] = [#144069=IfcWallStandardCase('3qMdsXfXrAvuL60mUR_8Vj',#12,'Wand-007',$,$,#144022,#144064,'B1536A06-39C4-4386-B8-F3-7CED7195FF1F',$)] self.settings... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vulevukusej |
| 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