Marthee commited on
Commit
5b916a0
·
verified ·
1 Parent(s): 9182bf0

Update deploying_3_3.py

Browse files
Files changed (1) hide show
  1. deploying_3_3.py +3 -3
deploying_3_3.py CHANGED
@@ -562,7 +562,7 @@ def get_hatch_color(entity):
562
 
563
 
564
  """### Hatched areas"""
565
- def get_hatched_areas(datadoc,filename,FinalRatio,rotationangle):
566
 
567
  doc = ezdxf.readfile(filename)
568
  doc.header['$MEASUREMENT'] = 1
@@ -1229,7 +1229,7 @@ def adjustannotations(OutputPdfStage1,text_with_positions):
1229
 
1230
 
1231
 
1232
- def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,pdfpath=0,pdfname=0,pdf_content=0):
1233
  OutputPdfStage1='BB Trial.pdf'
1234
  if pdf_content:
1235
  FinalRatio= RetriveRatio(datadoc,dxfpath,pdf_content)
@@ -1268,7 +1268,7 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,pdfpath=0,pdfname=0,pdf_con
1268
  rotationangle = 270
1269
 
1270
 
1271
- hatched_areas,Legendarray = get_hatched_areas(datadoc,dxfpath,FinalRatio,rotationangle)
1272
  allshapes=[]
1273
  # Iterate through each polygon in metric units
1274
  NewColors = []
 
562
 
563
 
564
  """### Hatched areas"""
565
+ def get_hatched_areas(datadoc,filename,FinalRatio,rotationangle,SearchArray):
566
 
567
  doc = ezdxf.readfile(filename)
568
  doc.header['$MEASUREMENT'] = 1
 
1229
 
1230
 
1231
 
1232
+ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,SearchArray,pdfpath=0,pdfname=0,pdf_content=0):
1233
  OutputPdfStage1='BB Trial.pdf'
1234
  if pdf_content:
1235
  FinalRatio= RetriveRatio(datadoc,dxfpath,pdf_content)
 
1268
  rotationangle = 270
1269
 
1270
 
1271
+ hatched_areas,Legendarray = get_hatched_areas(datadoc,dxfpath,FinalRatio,rotationangle,SearchArray)
1272
  allshapes=[]
1273
  # Iterate through each polygon in metric units
1274
  NewColors = []