AutoCAD 2013/2014/2015

AutoCAD 2013/2014/2015

Reply
Active Contributor
36 Posts
0 Kudos
Registered: ‎07-25-2013
Post 1 of 8

calculating values on the fly

342 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*
2,273 Posts
312 Kudos
Registered: ‎12-05-2005
Post 2 of 8

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
36 Posts
0 Kudos
Registered: ‎07-25-2013
Post 3 of 8

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*
4,055 Posts
343 Kudos
Registered: ‎08-01-2008
Post 4 of 8

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*
880 Posts
127 Kudos
Registered: ‎03-15-2008
Post 5 of 8

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*
4,055 Posts
343 Kudos
Registered: ‎08-01-2008
Post 6 of 8

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
36 Posts
0 Kudos
Registered: ‎07-25-2013
Post 7 of 8

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*
1,660 Posts
191 Kudos
Registered: ‎08-16-2007
Post 8 of 8

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
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!