Unit System in GH - Conversion Factor Lost?

Hi all,

I wonder if anyone has a suggestion for the following: In Grasshopper, I would like to model something which is ALWAYS going to be set dimension (lets say 10m) regardless of the current Rhino document’s unit-system.

For a super simple example, lets say I want a Line which is ALWAYS 10m long. It seems I can do the following, using the Unit System Param, and then the Rhino Unit System which includes that handy ‘to meters’ conversion factor output:

This works fine, and if I manually change the Unit-System value in the GH scene I get the expected result. However: when I set it to ‘Model Units’ I don’t get the conversion factor anymore? Now I get NaN

Is there a way to do this automatically using normal GH components? Why does the conversion factor get lost when using Model Units?

Environment:

  • MacOs Sonoma 14.5 (23F79)
  • Rhino 8 (8.10.24228.13002, 2024-08-15)

thanks!
@ed.p.may