Building Annotation Text Settings?

Hi, I wonder a few things about the new Annotation Text Settings objects in Grasshopper?

I understand that I can build up new Annotation Text Settings objects using something like:

from Grasshopper.Rhinoceros.Annotations import AnnotationTextSettings
from Grasshopper.Rhinoceros.Annotations.AnnotationTextSettings import Attributes
from Rhino.DocObjects.DimensionStyle import MaskFrame

text_setting_attributes = Attributes()
text_setting_attributes.TextHeight = 2.6
text_setting_attributes.TextGap = 2.4
text_setting_attributes.MaskOffset = 2.0
text_setting_attributes.MaskFrame = MaskFrame.CapsuleFrame

text_settings = AnnotationTextSettings(attributes = text_setting_attributes)

but I wonder a couple things:

  • Would this is the recommended method for building up these types of objects?
  • Are there any good code examples for creating these types of objects that I might refer to as I go?
  • Is it ok to mix elements from “DimensionStyle” with these Text Settings? (MaskFrame)? Or should I getting the proper MaskFrame items from another namespace?

thanks!
@ed.p.may