OSArch Community

Get IfcBeam coordinates in 3D space

  1. J

    Hello there,

    can I get the axis (respective the start and end point of the axis) of an IFCBeam in 3D space directly using ifcopenshell?

    I just know how to get the localI fcLocalPlacement and IfcAxis2Placement3D

        model = ifcopenshell.open("20240820.ifc")
    
        beams = model.by_type("IfcBeam")
    
        element = beams[0]
    
        start_point = element.ObjectPlacement.RelativePlacement.Location
    
        endd_point = element.ObjectPlacement.RelativePlacement.Location
    
    axis = element.ObjectPlacement.RelativePlacement.Axis

    But I would like to have just the the beam axis in 3D space

    Best,

    Niklas

  2. A

Login or Register to reply.