Text annotation can now extract dynamic variables from IFC data

This commit is contained in:
Dion Moult
2020-05-04 12:20:34 +10:00
parent dce5c40007
commit 3ce71e855f
6 changed files with 109 additions and 17 deletions
@@ -4,6 +4,17 @@ from mathutils import Vector
class Annotator:
@staticmethod
def get_svg_text_size(size):
sizes = {
'1.8': '2.97',
'2.5': '4.13',
'3.5': '5.78',
'5.0': '8.25',
'7.0': '11.55',
}
return float(sizes[str(size)])
@staticmethod
def add_text():
curve = bpy.data.curves.new(type='FONT', name='Text')