import attribute_controller as ac
import cadwork
import geometry_controller as gc
import element_controller as ec
import shop_drawing_controller as sdc
element_id = ec.get_user_element_ids()
if len(element_id) != 1:
uc.print_error('Please select just one wall element')
exit()
if not ac.is_wall(*element_id):
uc.print_error('Please select a wall element')
exit()
position_vector = gc.get_p1(*element_id)
position_vector += (gc.get_xl(*element_id) * 500.)
sdc.add_wall_section_vertical(*element_id, position_vector)