Entering a calculation for a dimension

I’m sure this must be an easy one, and I’ve done a few searches but maybe I don’t know how to word it for the search.

How could I enter a bit of maths at the command line, to create say a rectangle? My guess was something like the following.

Select first point for rectangle using a Snap point, then enter something like, r100,=100/1.414

I’ve tried a few variations, but without success.

See the help file for command-line calculator.

Rhino doesn’t work this way. Here is how to create a rectangle.

1 Double-click the viewport title to maximize the Top viewport.
2 From the Curve menu, click Polyline, and then click Polyline.
3 To Start type 0 and press Enter. If you are going to start at the origin of the sheet (0,0,0) (X,Y,Z) you can simply type 0 as a shortcut.
4 For the Next point type 5,0 and press Enter.
5 For the Next point type 5,5 and press Enter.
6 For the Next point type 0,5 and press Enter.
7 Click Close to close the polyline.

There is lots of information in the Help menu …

IHYH «Randy

wim and rhinorudi, thanks for both of your replies.

I’ve just had several goes at the examples at the link that you showed, but none worked. Either I’m being a bit thick, or is it that this isn’t implemented in the Mac version?

I feared my explanation may confuse. It wasn’t specifically for drawing a rectangle, as much as saving having to transfer the result from a calculator (even as simple as adding together the thickness of several materials) into Rhino, thus avoiding typos and the like.

I’ll have another look at the link, and see what I missed.

Cheers.

Chris

Now I know it’s called a “command line calculator”, a quick search in the Mac Rhino Wiki, revealed this
http://www.wiki.mcneel.com/developer/scriptsamples/eval?s[]=command&s[]=line&s[]=calculator
which I guess means that it’s not built into the Mac version.

Works here drawing a rectangle for illustration purposes.

Start rectangle command …

Enter first length as 100 …

Enter my math for second width …

My completed command / rectangle …

«Randy

Done on a Mac !!!

Division always works. Why? Because it’s needed for fractional dimensions. However, no other command line operand works in V5… In V6 it will be possible AFAIK. – Mitch

Thanks Mitch, good to know.

Randy,

thanks for the help. That way worked for me as well, I hadn’t spotted that you could do it in two hits (Length and Width) I’ve just done it with Relative coordinates. So I’m guessing it will work for a single value, but not for two or more coordinates.

O.K. just read Helvetosaur’s reply, and now understand, thanks for the help. Cut and paste it is.

Chris

1 Like