Attach my slab to the upper Ppoint

 
  • Hi,

    I have a macro to attach elevation slabs:

    define function !!EL()
    new slab
    Tmrf /My_slab
    ON IDp@
    at@
    REFRESH
    EndFunction

    In a plan view, I want to get the elevation of the top of a pane. But in the plan view 2 PPoint are on top of each other and it automatically choose the lower one :(

    How can I get and show the elevation of the upper point?
    Is there a way to get the elevation of a plane? something like ON ID PLANE @ ?

    Thanks for you help