Rhino 9 WIP — AddText height argument comes out 25.4x too large

The height passed to AddText produces text 25.4x taller than requested in the Rhino 9 WIP. Rhino 8 is correct. Affects both RhinoScript and Python rhinoscriptsyntax.

Same file in both versions, document units Inches:

Rhino.AddText "TEST-A", Array(0,0,0)
Rhino.AddText "TEST-B", Array(0,20,0), 3
Rhino 8 Rhino 9 WIP
TEST-A (no height arg) 1 25.4
TEST-B (height 3) 3 76.2

Already checked: document units are Inches, annotation style Model space scale is 1, and the interactive Text command is correct in both versions. TextObjectHeight on the result reports the scaled value, so the object really is that tall.

Rhino 9 SR0 2026-7-21 (Rhino 9 BETA, 9.0.26202.12303, Git hash:master @ 4a384a80f8ff5744ec253d4b8bf3bb842f9fac89)
License type: Commercial, build 2026-07-21
License details: Cloud Zoo
Expires on: 2026-09-04

Hi Dan,

i was able to repeat this in the latest (9.0.26203) — the height passed to AddText is getting multiplied by the doc-units-to-mm factor, so 25.4x in inch files and 1000x in meter files, mm files are fine. Thanks for the clean test case.

Logged as RH-97193 — it’s a 9-only regression in how the text height unit system is handled, Rhino 8 is unaffected.

Worth noting in the meantime: in the current beta the python rhinoscriptsyntax AddText isn’t affected (it sets the height on the text entity directly), and setting the height after creation (rs.TextObjectHeight / TextEntity.TextHeight) also bypasses the bad scaling, so either works as a workaround until the fix lands.

Thanks for reporting!