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

# calculating values on the fly

285 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*
Posts: 1,950
Registered: ‎12-05-2005
Message 2 of 8 (283 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
Posts: 36
Registered: ‎07-25-2013
Message 3 of 8 (274 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*
Posts: 3,691
Registered: ‎08-01-2008
Message 4 of 8 (246 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, 240Gb 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*
Posts: 880
Registered: ‎03-15-2008
Message 5 of 8 (232 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!

Dave.

------------------------------------------------------
Dave Hein, P.E.
*Expert Elite*
Posts: 3,691
Registered: ‎08-01-2008
Message 6 of 8 (211 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...
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, 240Gb 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
Posts: 36
Registered: ‎07-25-2013
Message 7 of 8 (193 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.

*Expert Elite*
Posts: 1,497
Registered: ‎08-16-2007
Message 8 of 8 (183 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.

### You are not logged in.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

### Maintenance Subscription Resources

Upgrading to a 2015 product? Make sure to check these out 1st!