Command line math, shortcuts


#1

I often use command line math, but in the past I’ve actually only ever used division.

With division, you don’t need to use = and brackets. I can for instance:
Polyline
0,0
200/5
click

And end up with a line 40mm long.

But now I want to use subtraction I have to:
Polyline
0,0
=(20+20)
click

Its really annoying having to use brackets, since it requires pressing shift.

Is there any way to be able to addition and subtration like we can do division?

(edit: just to clarify - with division it is so good cos I can just use the numeric keypad, which is right next to my mouse. equals and brackets requires a large hand movement and an uncomfortable wrist twist. How do C++ programmers do it all day long?)

(final edit: I realised why division works like it does - it is considered a fraction)


(Steve Baer) #2

Yep, I agree it is annoying. We recently put a lot of effort into our command line parser for Rhino6 and this feature should be available in that release.

Edit: I just checked my personal V6 build and simple math expressions do appear to be working without the =(…) syntax


(Wim Dekeyser) #3

I can’t seem to replicate that here but if you send me your file I’ll give it a shot :wink:


#4

When I program I don’t use the mouse nor the numpad. I just use 10 fingered blind typing using the normal keyboard area with the number 1234567890 on top.

Especially since coding is not just numbers :wink:


#5

Until Rhino 6 arrives you can use a docked Calc. Pressing Go will add this to the Command line at what ever stage you have reached.


#6

Any chance of this parser getting ported back to V5? That would be really nice.


(Steve Baer) #7

Not really. We are not adding new features to V5’s core at this time and this feature is going to require thorough testing which is what the V6 beta process is for.


#8

Fro Rhino v4 and v5 look for Rhino3D Command Prompt expression at:

http://www.rhino3d.e-cnc.com

Mike


#9

Thanks for the link Mike, but I can’t seem to find a version for Rhino 5.