Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Kent1Cooper
en respuesta a: Anonymous


@Anonymous wrote:

.... is there a way to make the output number as just a decimal number rather than x'-x".  ....


The (rtos) [real number to string] function returns a text string in whatever the current Units mode and precision settings are, if you don't tell it to do something different.  Read about it in Help to understand its mode and precision arguments.  Basically, you should go through the code and find all of those, and change those where you want a decimal output from:

  (rtos whatever)

to something like:

  (rtos whatever 2 3)

 

The 2 is for decimal mode, the 3 is my arbitrary assumption for the number of decimal places, so change that to what you prefer.

Kent Cooper, AIA