AutoCAD/command line entries

Advertisement


Question
I appreciate your quick response, however my knowledge of ACAD is minimal. How is this lisp used? Is it a command line entry? I can see I need to learn about lisp's as I've searched the web for other answers about things I want to do, ie dimension an arc! I can't believe that shortcoming.
Thanks for the help.-------------------------
Followup To
Question -
While offsetting a line, I know I can enter an equation for dividing, 120/2, and get an offset of 60. How do I do the same if I want to divide a number with a decimal? 23.75/2 doesn't work for me. I receive the following message,
"Requires numeric distance, two points, or option keyword" and I don't know what it is looking for.
I'm using MECHANICAL 2004 DX
Answer -
Try to Invoke a lisp statement instead: (/ 23.75 2.0)

Hope this helps, let me know.

J. B. Borge

Answer
Robert,

Autocad can evaluate this simple lisp expression directly & also transparently (along with the 'Offset' command) on the command line.

Command: offset
Specify offset distance or [Through] <Through>: (/ 23.75 2.0)
11.875
Select object to offset or <exit>:
Specify point on side to offset:
Select object to offset or <exit>:

In order to invoke this math expression, you must start & end it with parenthesis. Inside the parenthesis, the lisp syntax goes in this order:

(Function Number Number)

Thus, (+ 1 2) is the standard math equivalent of 1+2
(/ 23.75 2.0) is the same as 23.75÷2

Hope, my explanation is much clearer this time. Let me know if this works!

Regards,
J. B. Borge

AutoCAD

All Answers


Answers by Expert:


Ask Experts

Volunteer


J. B. Borge

Expertise

I can answer general questions about Autocad & Solid Works.

Experience

I've been in the 3D/2D CAD industry for over 16 yrs. & also had the opportunity/exposure to work with several mainstream design platforms including Helix Design Systems to Solid Works to Civil 3D.

Education/Credentials
Austin College, Tarrant County College, ITT

Awards and Honors
AUGI Top Dawg Dallas 2004

Past/Present Clients
Freightliner, Mac Trucks, Arctic Cat, Walmart, & Sam's Club

©2012 About.com, a part of The New York Times Company. All rights reserved.