Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

calculating values on the fly

7 REPLIES 7
Reply
Message 1 of 8
immunoman
556 Views, 7 Replies

calculating values on the fly

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?

7 REPLIES 7
Message 2 of 8
jggerth1
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.

 

 

 

Message 3 of 8
immunoman
in reply to: jggerth1

It seems 'cal is the way to make it work

Message 4 of 8
neilyj666
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)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 5 of 8
heinsite
in reply to: neilyj666

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

Smiley Wink

Dave.

------------------------------------------------------
Dave Hein, P.E.
Message 6 of 8
neilyj666
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)
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 7 of 8
immunoman
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.Smiley Mad

Message 8 of 8
dbroad
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.

 

 

Architect, Registered NC, VA, SC, & GA.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost