Zorg Posted July 20, 2009 Posted July 20, 2009 (defun c:vpl( / ) (command "mv" "lock" "on") ) I'm having a bit of viewport trouble at the moment. In some drawings when i select a viewport and go to the properties, it displays nothing. I tried to make a quick fix for locking viewports by using MV and wanted to make a quick lisp with the command vpl, however; when i click the viewport and run this it does nothing, likewise if i run the command and then wish to click on the viewport i get a nil response. Can anyone explain what is wrong? Or if there is a better way of going about this? Many thanks in advance. Z Quote
The Buzzard Posted July 20, 2009 Posted July 20, 2009 (defun c:vpl( / ) (command "mv" "lock" "on") ) I'm having a bit of viewport trouble at the moment. In some drawings when i select a viewport and go to the properties, it displays nothing. I tried to make a quick fix for locking viewports by using MV and wanted to make a quick lisp with the command vpl, however; when i click the viewport and run this it does nothing, likewise if i run the command and then wish to click on the viewport i get a nil response. Can anyone explain what is wrong? Or if there is a better way of going about this? Many thanks in advance. Z You were trying to use the alias, Try this. (defun c:vpl() (command "_.MVIEW" "L" "ON") ) Quote
The Buzzard Posted July 20, 2009 Posted July 20, 2009 You were trying to use the alias, Try this. (defun c:vpl() (command "_.MVIEW" "L" "ON") ) Sorry Zorg, Try this to avoid the nil echo: (defun c:vpl () (command "_.MVIEW" "L" "ON" pause) ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.