extract informations about corners

This commit is contained in:
GotPPay
2017-12-24 23:35:11 +01:00
parent db7453f438
commit 7daa9db4ed
3 changed files with 53 additions and 2 deletions

View File

@@ -290,6 +290,7 @@ def array_summary():
calculator.subarrays,
max_y)
context['buildings'] = project_presenter.get_buildings(calculator.buildings_for_drawing, max_y)
context['corners'] = project_presenter.get_corners(calculator.buildings)
context['override_form'] = True
context['cad_file_name'] = session_manager.site.cad_file_name or 'Upload System Text Data'
context['dxf_file_name'] = session_manager.site.dxf_file_name or 'Upload System DXF'
@@ -297,6 +298,11 @@ def array_summary():
context['inaccurate_drawing_warning'] = 'The subarrays in this design are not parallel to each other, \
and the graphical representation on this page may not be accurate.'
print("=================")
print("CORNERS : ")
print(context['corners'])
print("=================")
except FileValidationException as error:
# when calculator is about to enter infinte loop
# it throws an exception - it is supplied wrong data