Annotation unit problem

File units is millimeters. Annotations are in meters and length dimensions are correct.

Area dimensions are displayed in millimeters unfortunately. Below is a screenshot from Rhino 8 on my PC.

1 Like

Hi @martinsiegrist ,

Would you be able to send me that file so I can have a look?

1 Like

24_01_02_annotation_unit_problem.3dm (125.3 KB)

Thanks

2 Likes

Thanks, I can reproduce the problem.

Formulas aren’t supported in iRhino at the moment. That’s what’s causing the issue here.
I logged a bug here

Ok, at least I know I haven’t done anything wrong.

Is there a quick way to convert formula based user text to static text?

Not that I know of, maybe @pascal has a script?

Hi Martin - this might work -

import Rhino
import System
import rhinoscriptsyntax as rs


    
def MakeStaticText():
    
    filter = Rhino.DocObjects.ObjectType.Annotation
    rc, objref = Rhino.Input.RhinoGet.GetOneObject("Select annotation", False, filter)

    if rc != Rhino.Commands.Result.Success:
        return

    obj = objref.Object()

    if not obj:
        return

    id = obj.Id
    geo = obj.Geometry
    text = geo.Text
 
    if text is not None:
        geo.RichText = text
        obj.CommitChanges()
        scriptcontext.doc.Views.Redraw()

if __name__ == "__main__":
    MakeStaticText()


-Pascal

1 Like