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

Having a problem with a end of drawing routine.

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
HullDrafter
327 Views, 3 Replies

Having a problem with a end of drawing routine.

Hello again. I am trying to put together my own routine to see if I know what I am doing. Just a short routine.

 

(DEFUN C:enddwg ()
  (COMMAND "-purge" "a" "" "N")         ;PURGE ALL PARTS OF THE DRAWING
  (COMMAND "-purge" "a" "" "N")         ;PURGE ALL PARTS OF THE DRAWING
  (COMMAND ".MV" "L" "ON" "ALL" "")     ;LOCK VIEW PORTS
  (COMMAND "QSAVE")                     ;SAVE DRAWING
  (COMMAND "QUIT")                      ;QUIT DRAWING
)                    ; end defun
  (PRINC)
(princ "\n  enddwg.lsp is loaded.  Type \"ENDDWG\" to run.")
(princ)

I am not locking the viewports. I would also like to know how to turn off the viewport(s) and then save and quit

 

Any suggestions?

HD

3 REPLIES 3
Message 2 of 4
hmsilva
in reply to: HullDrafter

(COMMAND ".MVIEW" "L" "ON" "ALL" "")

MV it's an Alias for the MVIEW command...

To turn OFF the viewport(s), try

(COMMAND ".MVIEW" "OFF" "ALL" "")

 

Henrique

EESignature

Message 3 of 4
HullDrafter
in reply to: hmsilva

Thank you for the assistance. What you provided worked, but I wasn't thinking when I requested turning off the VPort. I need to freeze it. Everything you provided worked exactly correct. I already know the last part, and will get it taken care of tomorrow. Again, thank you.

HD

Message 4 of 4
hmsilva
in reply to: HullDrafter

You're welcome, HD
Glad I could help

Henrique

EESignature

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

Post to forums  

Autodesk Design & Make Report

”Boost