Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
rhino:faq:formuals-in-dimension [2026/02/05]
maryfugier old revision restored (2026/02/05)
rhino:faq:formuals-in-dimension [2026/02/05] (current)
maryfugier [Try these:]
Line 30: Line 30:
 |Square|<nowiki>%<(<>**2)>%</nowiki>|Computes the square of <>| |Square|<nowiki>%<(<>**2)>%</nowiki>|Computes the square of <>|
 |Square Root|<nowiki>%<(<>**0.5)>%</nowiki>|Computes the square root of <>| |Square Root|<nowiki>%<(<>**0.5)>%</nowiki>|Computes the square root of <>|
-|DimText + TextField|<nowiki>%<'{:.3f}'.format( <> * float(DetailScale("6e89146e-46b2-4a82-ac89-15f39a23cdde","Noformatting")) )>%</nowiki>|Computes the value with DimText and a TextField|+|DimText + TextField|<nowiki>%<'{:.3f}'.format( <> * float(DetailScale("GUID","Noformatting")) )>%</nowiki>|Computes the value with DimText and a TextField|
  
 ==== Notes ==== ==== Notes ====
Line 36: Line 36:
  
   * Detail scale returns a mix of numbers and text so we need to convert it to a decimal number first. "float" tells python to convert the text into a floating point number. Once that happens you can use math functions on it.   * Detail scale returns a mix of numbers and text so we need to convert it to a decimal number first. "float" tells python to convert the text into a floating point number. Once that happens you can use math functions on it.
-     * <'{:.3f}'.format( <> * float(DetailScale("6e89146e-46b2-4a82-ac89-15f39a23cdde","Noformatting")) )>%<+     <nowiki>%<'{:.3f}'.format( <> * float(DetailScale("GUID","Noformatting")) )>%</nowiki>
  
      * If you dont care about formatting the number of places after the decimal point then you can drop the '{:.3f}'.format .      * If you dont care about formatting the number of places after the decimal point then you can drop the '{:.3f}'.format .
  
   * The "Noformatting" isn't parsed, so it's the same as just putting ""   * The "Noformatting" isn't parsed, so it's the same as just putting ""
-     * %< <> * float(DetailScale("6e89146e-46b2-4a82-ac89-15f39a23cdde","")) >%+     * %< <> * float(DetailScale("GUID","")) >%
rhino/faq/formuals-in-dimension.1770320577.txt.gz ยท Last modified: 2026/02/05 by maryfugier