You could get the beam curve, or what I like to call “the blue wire”, from your Revit Beams using the OOTB “StructuralFraming.Location” node.
You would expect (as I did) that the beam curve or “work line” of the beam would be located at the TOP CENTER of the beam. However, if your beam’s “Z” Offset Value is NON ZERO then the beam curve or “work line” is not at the top center of the physical beam.
You have two options to correct this. You could get the true geometric top center of the beam by doing an analysis of the beam geometry using dynamo. This method is a bit complicated……. or you could use the method below.