Rhino CAL command (command line calculator)

Hello,

in AutoCAD I often use the command “CAL”, which is a command line calculator (text based, no GUI) since I find it often faster than the “QuickCalc” (CAD) which is similar to the “Calc” in rhino.
Is there a way to use the rhino command line as a calculator? Not within commands, just to see the result.
E.g.: cal (enter) 2*1 (enter) returns 2

Hi Andrej - you can just enter the math at the command line in Rhino.

-Pascal

Hello Pascal,

If I enter 2 * 1 in the command line, I receive “Unknown command: 2*1” instead of “2”

Calculations only work inside a running command. They also work in any of the Gumball entry boxes.

Ah OK. Could this become a feature request?

You can have a normal or RPN calculator as a panel.

I prefer having layers on the side instead of a calculator… a command line calculator is simply faster. There is no need to click inside some GUI to activate it, then to click again to close it using some X. Just keyboard. And you can find the history by scrolling the command line if needed.

My guess is it would not be hard to make a Calculate command… asking…

RH-69610 Calculate command

-Pascal

Well, it’s unlikely to work because when there’s no command active, Rhino is expecting a command name at the command line. And while normal commands do not start with numbers, aliases can - plus the fuzzy autocomplete. So Rhino would never know what you wanted if you just started typing numbers. Plus if you want the result of sin(30), that starts with letters…

One way it might be able to be made to work is like Excel - i.e. to start a calculation you have to type = and then your formula.

Yes, or a new command altogether, as Pascal suggested.

@andrej on Windows there is testEval - that may help for now.

-Pascal

I was wondering if there’s any hope that a built-in feature for evaluating simple math expressions directly in the command line might be added in Rhino 9?
It would be really helpful to quickly calculate values without leaving Rhino.

Thanks again for your time and all the work on Rhino!

Best regards,

It’s already possible in V8 - what have you tried?

thank you!!

I know that when rhino wait for a float value, we can put a mathemathic value, like 100+540…

But when I have to calculate something, like a weight, i’ve got the volume, with rhino, the density, with my head, or google… and i have to take my calculator or launch the windows calculator, and…

It will be fun, to just write 250*36*96.32 in the command line in rhino, and it give the result…

I realize during i write, that :” c’est un peu abusé de demander un truc comme ça… feignant!” (i don’t know how i can say it in english.) thank’s!

Mais, ça marche comme ça…

Ahh, tu penses purement comme calculatrice, en dehors d’une commande? OK, cela ne marchera pas alors.

Hi -

You could use text fields to do the calculation.
Convert strings to numbers
-wim