Title: get location from IfcObjectPlacement · Issue #1638 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: get location from IfcObjectPlacement · Issue #1638 · IfcOpenShell/IfcOpenShell
X Title: get location from IfcObjectPlacement · Issue #1638 · IfcOpenShell/IfcOpenShell
Description: I am trying to get the location of the different elements I have in an IFC file. Once I get the element I want (i.e wall, slab, column, etc), I think that the placement/location is coming using element->ObjectPlacement(), is that right? ...
Open Graph Description: I am trying to get the location of the different elements I have in an IFC file. Once I get the element I want (i.e wall, slab, column, etc), I think that the placement/location is coming using ele...
X Description: I am trying to get the location of the different elements I have in an IFC file. Once I get the element I want (i.e wall, slab, column, etc), I think that the placement/location is coming using ele...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/1638
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"get location from IfcObjectPlacement","articleBody":"I am trying to get the location of the different elements I have in an IFC file.\r\nOnce I get the element I want (i.e wall, slab, column, etc), I think that the placement/location is coming using ```element->ObjectPlacement()```, is that right? (I am checking if it has an object placement before hand, just in case)\r\n\r\nin case that is ok (which seems it is as I can print the data inside the ```IfcObjectPlacement``` and looks like the data I need), how do I get the data inside it?\r\n\r\nthe print of the object placement returns a _#818=IfcLocalPlacement(#149,#817)_ , which is the data I want, but then when I want to access to data inside ```#818```, I cannot get anything.\r\n\r\ninside ```IfcObjectPlacement``` I can only access ```objectPlacement->PlacesObject()``` and ```objectPlacement->ReferencedByPlacements()```. The later returns a list of size 0, and the first one returns a list with 1 element which is the original element (a wall in this case _#847=IfcWall('1JMjYabfzCH9po57TAAhNT',#42,'Wall1',$,'Basic Wall:Wall-Ext_102Bwk-75Ins-100LBlk-12P',#818,#843,'320381',.NOTDEFINED.)_ )\r\n\r\nI tried to cast the data using the ```.as\u003c>``` method into a local placement, axis2placement2d, axis2placement3d, gridplacement, but all of those casts fail so I cannot get the data.\r\n\r\nI tried with other elements in the IFC, just in case this one was generated wronly, but no luck.\r\n\r\nCan you tell me if I have a problem in the IFC file, or I am doing something wrong to access the data I want to get?","author":{"url":"https://github.com/Fleakad","@type":"Person","name":"Fleakad"},"datePublished":"2021-08-10T10:44:05Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1638"}
| 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:d3919fab-9abc-6f73-a347-da463f453b4f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4FC:8EB91:4B67CD:67B5D7:6B049F07 |
| html-safe-nonce | b4a72b5c7dc638b441eaf6f13c96243b4c589c2d4946f98e276b89686ae0a6b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEZDOjhFQjkxOjRCNjdDRDo2N0I1RDc6NkIwNDlGMDciLCJ2aXNpdG9yX2lkIjoiMTE3NTgwMzE0OTgwOTQ5NzY3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2a898c353e7b98f4324114792dc0d51c2d5326658fabd28823960f8bea3c4a74 |
| hovercard-subject-tag | issue:964843927 |
| 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/1638/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cfe2595953eb0d6d28340ad9266c01f344118993aeb883c8bf53eec5cd0011ce/IfcOpenShell/IfcOpenShell/issues/1638 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cfe2595953eb0d6d28340ad9266c01f344118993aeb883c8bf53eec5cd0011ce/IfcOpenShell/IfcOpenShell/issues/1638 |
| og:image:alt | I am trying to get the location of the different elements I have in an IFC file. Once I get the element I want (i.e wall, slab, column, etc), I think that the placement/location is coming using ele... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Fleakad |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| 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 | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| 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