Marthee commited on
Commit
1987383
·
verified ·
1 Parent(s): c3404bf

Update deploying_3_3.py

Browse files
Files changed (1) hide show
  1. deploying_3_3.py +12 -2
deploying_3_3.py CHANGED
@@ -1083,7 +1083,12 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,pdfpath=0,pdfname=0):
1083
  annot11 = page2.add_polygon_annot( points=shapee) # 'Polygon'
1084
  annot11.set_border(width=0.2)
1085
  annot11.set_colors(stroke=(int(NewColors[0])/255,int(NewColors[1])/255,int(NewColors[2])/255), fill= (int(NewColors[0])/255,int(NewColors[1])/255,int(NewColors[2])/255) )
1086
- annot11.set_info(content='Area='+str(polygon[1])+' m^2',subject='ADR Team')
 
 
 
 
 
1087
  annot11.set_opacity(0.8)
1088
  # annot.set_line_ends(fitz.PDF_ANNOT_LE_DIAMOND, fitz.PDF_ANNOT_LE_CIRCLE)
1089
  annot11.update()
@@ -1093,7 +1098,12 @@ def mainFunctionDrawImgPdf(datadoc,dxfpath, dxfratio,pdfpath=0,pdfname=0):
1093
  annot12 = page2.add_polygon_annot( points=shapee) # 'Polygon'
1094
  annot12.set_border(width=0.2)
1095
  annot12.set_colors(stroke=(int(NewColors[0])/255,int(NewColors[1])/255,int(NewColors[2])/255))
1096
- annot12.set_info(content='Perimeter='+str(polygon[2])+' m',subject='ADR Team')
 
 
 
 
 
1097
  annot12.set_opacity(0.8)
1098
  # annot.set_line_ends(fitz.PDF_ANNOT_LE_DIAMOND, fitz.PDF_ANNOT_LE_CIRCLE)
1099
  annot12.update()
 
1083
  annot11 = page2.add_polygon_annot( points=shapee) # 'Polygon'
1084
  annot11.set_border(width=0.2)
1085
  annot11.set_colors(stroke=(int(NewColors[0])/255,int(NewColors[1])/255,int(NewColors[2])/255), fill= (int(NewColors[0])/255,int(NewColors[1])/255,int(NewColors[2])/255) )
1086
+ # annot11.set_info(content='Area='+str(polygon[1])+' m^2',subject='ADR Team')
1087
+ annot11.set_info(
1088
+ content=f"Area = {polygon[1]:.2f} m^2", # Label displaying the area
1089
+ subject="Area Measurement", # Key field for Bluebeam recognition
1090
+ title="ADR Team"
1091
+ )
1092
  annot11.set_opacity(0.8)
1093
  # annot.set_line_ends(fitz.PDF_ANNOT_LE_DIAMOND, fitz.PDF_ANNOT_LE_CIRCLE)
1094
  annot11.update()
 
1098
  annot12 = page2.add_polygon_annot( points=shapee) # 'Polygon'
1099
  annot12.set_border(width=0.2)
1100
  annot12.set_colors(stroke=(int(NewColors[0])/255,int(NewColors[1])/255,int(NewColors[2])/255))
1101
+ # annot12.set_info(content='Perimeter='+str(polygon[2])+' m',subject='ADR Team')
1102
+ annot12.set_info(
1103
+ content=f"Perimeter = {polygon[2]:.2f} m", # Label displaying the area
1104
+ subject="Perimeter Measurement", # Key field for Bluebeam recognition
1105
+ title="ADR Team"
1106
+ )
1107
  annot12.set_opacity(0.8)
1108
  # annot.set_line_ends(fitz.PDF_ANNOT_LE_DIAMOND, fitz.PDF_ANNOT_LE_CIRCLE)
1109
  annot12.update()