Jump to content

Recommended Posts

Posted

(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? o:)

 

Many thanks in advance.

 

Z

Posted
(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? o:)

 

Many thanks in advance.

 

Z

 

You were trying to use the alias, Try this.

 

(defun c:vpl()
(command "_.MVIEW" "L" "ON")
)

Posted
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)
)

Posted

Smashing, that worked great thanks!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...