AutoCAD 2013/2014/2015

Reply
Active Contributor
immunoman
Posts: 36
Registered: ‎07-25-2013
Message 1 of 8 (325 Views)

calculating values on the fly

325 Views, 7 Replies
07-26-2013 08:59 AM

A fundamental question that comes across regularly is calculating values for offset distances, move, radii, etc. If I want to calculate a value of .5 the interface does not accept 1/2 as a valid entry. Can someone explain this basic function to me?

*Expert Elite*
JGerth
Posts: 2,201
Registered: ‎12-05-2005
Message 2 of 8 (323 Views)

Re: calculating values on the fly

07-26-2013 09:10 AM in reply to: immunoman

Does not 0.5 work as input?  or are you talking about half the distance between two points?

 

If the latter, then (* 0.5 (getdist)) will let you pick two points and return half the distance between then.

 

If you want to use arbitrary fractions, then command line lisp is also handy,  the expression would be (/ 1 2.0), or (/ 4 5.0)

 

(one of the numbers always needs to be a real, or the result will be an integer, (/ 1.2) returns 0 instead of 0.5)

 

Or, you can explore the CAL command for another variant.

 

 

 

Active Contributor
immunoman
Posts: 36
Registered: ‎07-25-2013
Message 3 of 8 (314 Views)

Re: calculating values on the fly

07-26-2013 10:04 AM in reply to: JGerth

It seems 'cal is the way to make it work

*Expert Elite*
neilyj
Posts: 3,865
Registered: ‎08-01-2008
Message 4 of 8 (286 Views)

Re: calculating values on the fly

07-27-2013 04:21 AM in reply to: immunoman
the transparent M2P will allow you to pick a midpoint between two pick points
neilyj
(No connection with Autodesk other than using the products in the real world)


IDSP Premium 2015 (mainly Civil 3D 2015 UKIE & Infraworks with some limited 3ds Max Design)
Win 7 Pro x64, 500Gb SSD, 1Tb HDD
32Gb Ram Intel Xeon CPU E5-2650 v2 @ 2.6GHz (32 CPUs), ~2.6GHz
NVIDIA Quadro K4000, Dual 27" Monitor, Dell T5610
*Expert Elite*
heinsite
Posts: 880
Registered: ‎03-15-2008
Message 5 of 8 (272 Views)

Re: calculating values on the fly

07-27-2013 04:03 PM in reply to: neilyj

M2P ijust might be on the top of my favorite commands list! 

:smileywink:

Dave.

------------------------------------------------------
Dave Hein, P.E.
*Expert Elite*
neilyj
Posts: 3,865
Registered: ‎08-01-2008
Message 6 of 8 (251 Views)

Re: calculating values on the fly

07-29-2013 01:13 AM in reply to: heinsite
It's certainly up there in my favourites...:smileyhappy:
neilyj
(No connection with Autodesk other than using the products in the real world)


IDSP Premium 2015 (mainly Civil 3D 2015 UKIE & Infraworks with some limited 3ds Max Design)
Win 7 Pro x64, 500Gb SSD, 1Tb HDD
32Gb Ram Intel Xeon CPU E5-2650 v2 @ 2.6GHz (32 CPUs), ~2.6GHz
NVIDIA Quadro K4000, Dual 27" Monitor, Dell T5610
Active Contributor
immunoman
Posts: 36
Registered: ‎07-25-2013
Message 7 of 8 (233 Views)

Re: calculating values on the fly

07-29-2013 12:07 PM in reply to: immunoman

I thought 'cal was the answer to calculating values while creating accurate geometry. It doe not seem to work however when prompted for x,y coordinates when I tried using it in the offset comman.:smileymad:

*Expert Elite*
dbroad
Posts: 1,604
Registered: ‎08-16-2007
Message 8 of 8 (223 Views)

Re: calculating values on the fly

07-29-2013 02:01 PM in reply to: immunoman

Works fine for me. Perhaps a little more process information from you might help us guess how and what you are doing.

 

For me, if using through option:

Offset <enter to pick through><pick object>'cal (nea+cur)/2<enter><pick><pick>

 

For me, if using the distance option:

Offset 'cal<enter>dist(nea,cur)/2<enter><pick object><pick side>

 

Of course, the formula you choose to use could virtually anything.

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.