Text declaration can be used to add text to a drawing. Use the
text member to set the text to generate. The
vertical_alignment can be used to style the text as desired.
# Created in DeclaraCAD from declaracad.occ.api import * enamldef Assembly(Part): Box: transparency = 0.8 color = 'orange' dx = 50 dy = 15 position = (0, 0, -dz) Text: text = "DeclaraCAD" font = "Georgia" size = 6 position = (10, 5)
It generates a face for each character. The topology of the text can be accessed like any other shape and use for further processing as needed.