Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

need some lisp/script help

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
154 Views, 2 Replies

need some lisp/script help

I am in the process of re-doing my menu. I used to have a script or lisp
that would lock or unlock all viewports when I typed vpu for viewport
unlock, and vpl for viewport lock. Can someone tell me how to re-program
this? Not sure what to do.

MKH
2 REPLIES 2
Message 2 of 3
wundrlik
in reply to: Anonymous

(DEFUN C:VPL () (COMMAND ".vports" "lock" "on" "ALL" ""))

(DEFUN C:VPU () (COMMAND ".vports" "lock" "off" "ALL" ""))

There's the code I use in my user.lsp that I load with my autocad session. That should work for you.

Ryan A Wunderlich
Message 3 of 3
Anonymous
in reply to: Anonymous

 

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

Post to forums  

Autodesk Design & Make Report

”Boost