public static SpeckleAnnotation ToSpeckle(this TextDot textdot) { var myAnnotation = new SpeckleAnnotation(); myAnnotation.Text = textdot.Text; myAnnotation.Location = textdot.Point.ToSpeckle(); myAnnotation.SetHashes(myAnnotation); return(myAnnotation); }
// Texts & Annotations public static SpeckleAnnotation ToSpeckle(this TextEntity textentity) { Rhino.DocObjects.Font font = Rhino.RhinoDoc.ActiveDoc.Fonts[textentity.FontIndex]; var myAnnotation = new SpeckleAnnotation(); myAnnotation.Text = textentity.Text; myAnnotation.Plane = textentity.Plane.ToSpeckle(); myAnnotation.FaceName = font.FaceName; myAnnotation.TextHeight = textentity.TextHeight; myAnnotation.Bold = font.Bold; myAnnotation.Italic = font.Italic; myAnnotation.SetHashes(myAnnotation); return(myAnnotation); }