Title: Integers in enumerations cause an error · Issue #1943 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Integers in enumerations cause an error · Issue #1943 · IfcOpenShell/IfcOpenShell
X Title: Integers in enumerations cause an error · Issue #1943 · IfcOpenShell/IfcOpenShell
Description: So I'm not sure if this is an error in the way I'm defining the .ifc file, or if its an issue with BB. When I attempt to load this template file and then add the pset to an object, I get the following error message: File "C:\Users\vpaji\...
Open Graph Description: So I'm not sure if this is an error in the way I'm defining the .ifc file, or if its an issue with BB. When I attempt to load this template file and then add the pset to an object, I get the follow...
X Description: So I'm not sure if this is an error in the way I'm defining the .ifc file, or if its an issue with BB. When I attempt to load this template file and then add the pset to an object, I get th...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/1943
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Integers in enumerations cause an error","articleBody":"So I'm not sure if this is an error in the way I'm defining the .ifc file, or if its an issue with BB. When I attempt to load this template file and then add the pset to an object, I get the following error message:\r\n`File \"C:\\Users\\vpaji\\AppData\\Roaming\\Blender Foundation\\Blender\\3.0\\scripts\\addons\\blenderbim\\bim\\prop.py\", line 83, in getAttributeEnumValues\r\nTypeError: EnumProperty(...): expected a tuple containing (identifier, name, description) and optionally an icon name and unique number`\r\n\r\nHere is the .ifc file I was importing:\r\n```\r\nISO-10303-21;\r\nHEADER;\r\nFILE_DESCRIPTION((),'2;1');\r\nFILE_NAME('Pset_Custom.ifc','2020-01-01T00:00:00',(),(),'Sample','Sample',$);\r\nFILE_SCHEMA(('IFC4'));\r\nENDSEC;\r\n\r\nDATA;\r\n#1= IFCPROPERTYSETTEMPLATE('05N2Dhepb9ouTCSmWBh22D',$,'Custom_Pset','An example custom pset.',.PSET_TYPEDRIVENOVERRIDE.,'IfcObject',(#2,#3,#4));\r\n#2= IFCSIMPLEPROPERTYTEMPLATE('37EpTDq4v96gTZh196BBXQ',$,'NumericProperty','An example numeric property',.P_SINGLEVALUE.,'IfcCountMeasure','',$,$,$,$,.READWRITE.);\r\n#3= IFCSIMPLEPROPERTYTEMPLATE('22H7CzDvz1XfVHKkGWoYUK',$,'StringProperty','An example string property',.P_SINGLEVALUE.,'IfcLabel','',$,$,$,$,.READWRITE.);\r\n#4= IFCSIMPLEPROPERTYTEMPLATE('0p00ORU2nCnPA8UyQg2ZY$',$,'porr_Ganzzahl_E05','Impraegnierung',.P_ENUMERATEDVALUE.,'IfcInteger',$,#5,$,$,$,.READWRITE.);\r\n#5= IFCPROPERTYENUMERATION('Impraegnierung',(IfcInteger(1), IfcInteger(2), IfcInteger(3), IfcInteger(4), IfcInteger(5), IfcInteger(6), IfcInteger(0)),$);\r\nENDSEC;\r\n\r\nEND-ISO-10303-21;\r\n```","author":{"url":"https://github.com/vulevukusej","@type":"Person","name":"vulevukusej"},"datePublished":"2021-12-14T08:23:24Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1943"}
| 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:7618d61c-b133-8720-b02a-620e4980a4a0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DB90:3DD456:27AF37:365189:6B04B14F |
| html-safe-nonce | af043442478bfc67570882b9ee78f088e88f11076774caf13de42fcdcc2bfe42 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjkwOjNERDQ1NjoyN0FGMzc6MzY1MTg5OjZCMDRCMTRGIiwidmlzaXRvcl9pZCI6IjgzMzc2Mjg5NDMzMTAxNzI0OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c0fcf045afa3e42f915188cc177a438a1d428592101e2655f8b724b634109f56 |
| hovercard-subject-tag | issue:1079452725 |
| 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/1943/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ce85c597af6bbaacc7aa5c707fd8eaeae0824035a9ddf995d236f1d09545f5dd/IfcOpenShell/IfcOpenShell/issues/1943 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ce85c597af6bbaacc7aa5c707fd8eaeae0824035a9ddf995d236f1d09545f5dd/IfcOpenShell/IfcOpenShell/issues/1943 |
| og:image:alt | So I'm not sure if this is an error in the way I'm defining the .ifc file, or if its an issue with BB. When I attempt to load this template file and then add the pset to an object, I get the follow... |
| 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 | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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