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?
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.
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.
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.
Access a broad range of knowledge to help get the most out of your products and services.