Using math in command bar

Using math in command bar

jeroendewind
Enthusiast Enthusiast
1,801 Views
5 Replies
Message 1 of 6

Using math in command bar

jeroendewind
Enthusiast
Enthusiast

Hi all,

 

I would like to know if there's an easy way to do some calculations in the commandbar during a command. Whenever I can, I like to use the divide to get the value I want, for example: 5400/9. Unfortuatly it's not working with multiply, add or subtract, what is the reason for that?

I know I can open up the calculator in AutoCAD, or use the 'cal  command to do some math, but isn't it just possible to do all the math as easy as with divide?

 

Thanks

0 Likes
Accepted solutions (1)
1,802 Views
5 Replies
Replies (5)
Message 2 of 6

JDMather
Consultant
Consultant
'calc

-----------------------------------------------------------------------------------------
Autodesk Inventor 2019 Certified Professional
Autodesk AutoCAD 2013 Certified Professional
Certified SolidWorks Professional


0 Likes
Message 3 of 6

jeroendewind
Enthusiast
Enthusiast

@Anonymous wrote:
'calc

I know I can open up the calculator in AutoCAD, or use the 'cal  command to do some math, but isn't it just possible to do all the math as easy as with divide?


I'd rather use it without adding a commando first, but to be fair; adding 'cal isn't really much of an effort.

The problem of 'cal is that I'm losing my first point, direction and polar. 

0 Likes
Message 4 of 6

ВeekeeCZ
Consultant
Consultant
Accepted solution

Use can use LISP commands.
(+ 5400 9)
(- 5400 9)
(* 5400 9)

 

Other arithmetical functions see HERE

0 Likes
Message 5 of 6

GrantsPirate
Mentor
Mentor

(/ 5400 9) =600

(/ 5400 7 will give 771) 

always include a decimal in one of the numbers to prevent rounding when dividing if rounding is not desired

( 5400 7.0) = 771.429


GrantsPirate
Piping and Mech. Designer
EXPERT ELITE MEMBER
Always save a copy of the drawing before trying anything suggested here.
----------------------------------------------------------------------------
If something I wrote can be interpreted two ways, and one of the ways makes you sad or angry, I meant the other one.

0 Likes
Message 6 of 6

jeroendewind
Enthusiast
Enthusiast

Thanks, it works allright with (* 50 25) etc.

It's a little bit strange but I can get used to it!

 

Thanks