×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Automatic snap in Acad2000

Automatic snap in Acad2000

Automatic snap in Acad2000

(OP)
Is there a way in Acad2000 to control the snap On/Off automatically as follows?
- On command entry the snap should go Off.
- When objects selection is done the snap should go On.
In both cases it should be possible to alter the snap status manually.

RE: Automatic snap in Acad2000

Other than the way AutoCAD handles snapping, the only thing you could do is toggle the F3 button. I am assuming you meant OSNAP by the way.

"Everybody is ignorant, only on different subjects." — Will Rogers

RE: Automatic snap in Acad2000

You can use a short LISP program, like this one.  It turns snap off and and ortho on, then runs the MOVE command, then sets snap and ortho back the way they were.  This one is called OM and is part of my acad.lsp file.  I use it by typing OM on the command line.  Alternaltly, it could be asigned to a button or menu pull down or in the POP0 Ctrl-click menu.

(DEFUN C:OM ( / CM OM OT P) ; Move, NONE, Ortho on
 (setq CE (getvar "cmdecho")
       OM (getvar "osmode")
       OT (getvar "orthomode"))
 (setvar "cmdecho" 0)
 (setvar "orthomode" 1)
 (setvar "osmode" 0)
 (setq P (ssget))
 (COMMAND "MOVE" P "" PAUSE PAUSE)
 (setvar "cmdecho" CE)
 (setvar "orthomode" OT)
 (setvar "osmode" OM)
 (princ)
)

RE: Automatic snap in Acad2000

(OP)
I meant general snap (F9).

IFR, where should I write this program?
Thank you for reply.

RE: Automatic snap in Acad2000

xyzz - To save the current F9 setting, use (setq SM (getvar "snapmode") and to set it off use (setvar "snapmode" 0) and to turn it on use (setvar "snapmode" 1) and to return it to the saved condition use (setvar "snapmode" SM).

Write the routine inside your acad.lsp file.  Use a pure ASCII text editor like Notepad.  Do NOT use Word unless you know how to save it as pure text!!!  Word will mess it up!!!

RE: Automatic snap in Acad2000

(OP)
There is no Acad.lsp file in my computer :(

RE: Automatic snap in Acad2000

Doyo uby any chance have a version of Autocad LT???  If not, this won't sork because LT does not support Lisp.

Else, create this file by copy and paste into Notepad (Start/Run "Notepad"[ENTER]), save it as OM.lsp (or whatever).   Save it in C:\ (or wherever)

In Autocad, type (load"C:\\om.lsp")
The you can type "OM" without the quotes on the Autocad command line and it will start.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources