How can I get the start and end point of an Tekla IFC Beam object in Grasshopper?
I can import a lot of data with the GH Tekla component Get Property, but not the start and end point.
How can I get the start and end point of an Tekla IFC Beam object in Grasshopper?
I can import a lot of data with the GH Tekla component Get Property, but not the start and end point.
Hi Jan,
In my test, the start and end points in that Inquire dialog can be queried with the bounding box properties:
BOUNDING_BOX_MIN_X
BOUNDING_BOX_MIN_Y
BOUNDING_BOX_MIN_Z
BOUNDING_BOX_MAX_X
BOUNDING_BOX_MAX_Y
BOUNDING_BOX_MAX_Z
However these indeed refer to the bounding box and not the actual start and end points. Those actual end points are only available if they were included as an attribute for the object when the IFC was created.
The other option is to convert the objects into native Tekla objects in Tekla first and Deconstruct them instead.
Cheers,
-b
Thanks, the start and end point in the inquire object info is also boudingbox and not the start and end of the reference line
I have seen that the info under ‘Parametric object i-shape profile’ contains the info of the centre line (not the reference line). startpoint, vector and endpoint. With some calculations, I could calculate the startpoint and endpoint from this and then its also possible to calculate the reference line.
This is going a bit too far for what I need it for, but in theory it could be done.
No I think it’s a fair way to get your lines if you have the Origin and Extrusion attributes, haven’t seen any other suggestions in the forums at least if using the Tekla API (some 3rd party libraries might be able to probe the IFC objects though).
Cheers,
-b