# Custom text/number formatting in layout

**URL:** <https://discourse.mcneel.com/t/custom-text-number-formatting-in-layout/114097>\
**Category:** Rhino for Mac\
**Created:** [December 9, 2020, 1:47am UTC](https://discourse.mcneel.com/t/custom-text-number-formatting-in-layout/114097 "2020-12-09T01:47:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![defenestrated](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/defenestrated/32/214320_2.png) [@defenestrated](https://discourse.mcneel.com/u/defenestrated)\
**Post date:** [December 9, 2020, 1:47am UTC](https://discourse.mcneel.com/t/custom-text-number-formatting-in-layout/114097/1 "2020-12-09T01:47:30Z")

</div>

Hi all!

Here’s a wish: the ability to write custom formats for arbitrary things – strings, numbers, whatever – in text fields. A specific example: When creating shop drawings, I often have four or five scale drawings per sheet. Our firm’s standard is to notate the scale as **01" = 2’-6"**. I was _so_ excited to find “DetailScale” as a text variable in Rhino 7, but it _just barely_ doesn’t have quite the right format. The closest thing evaluates to 1" = 2.5’, which… I’ve never seen anyone measure in fractions of a foot.

Seems like a trivial thing, but the more abstracted version would be super helpful – the ability to format _any_ text via python or regex (I know currently “anything that evaluates to a number” can be formatted, but this is a unique case of number plus string, and being able to also change case, find/replace, etc would be huge). ![Screen Shot 2020-12-08 at 5.39.57 p](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/4/a/8/4a878d926327d0f71e6156fea3a79b640a0698dc.png)
