##Col_BBPL_Display.py Version 1.01

##Copyright (c) 2006 Bruce Vaughan, BV Detailing & Design, Inc.

##All rights reserved.

###############################################################################

"""

/// Select columns and list member number, piece mark and bottom of base plate elevation

"""

###############################################################################

from member import Member, MemberLocate

from param import Dialog, yes_or_no, ResponseNotOK, dim_print, Warning, ClearSelection

from macrolib.ExceptWarn import formatExceptionInfo

from macrolib.MemSelection import mem_select

 

def run_script():

    while True:

        ClearSelection()

        try:

            # Select column members

            mem1 = mem_select("Select a WF column member", ['Column', ], ["W flange", "Tube", "Cnannel", "Angle"], True, False)

            if not mem1:

                break

            Warning("Member No = %s\nPiecemark = %s\nBottom BPL Elev = %s" % (mem1[0].number, mem1[0].piecemark, dim_print(mem1[0].left.location.z)))

        except:

            Warning(formatExceptionInfo())

            break

## END run_script() ###########################################################

if __name__ == '__main__':

    try:

        run_script()

    finally:

        ClearSelection()

        del run_script