Nick-H- Posted October 13, 2009 Posted October 13, 2009 sometimes the veiwport is locked in a drawing, but the layer is turned off is there any easier way then turning the veiwport layer on and clicking on the vp and unlocking the vp in properties Quote
ReMark Posted October 13, 2009 Posted October 13, 2009 Since you are using LT it means doing it via LISP is out. But a macro would work. Check out this discussion: http://discussion.autodesk.com/forums/thread.jspa?threadID=468710 Quote
Nick-H- Posted October 13, 2009 Author Posted October 13, 2009 Nah im on Acad 2007 full version now, i need to change my profile Quote
Tiger Posted October 13, 2009 Posted October 13, 2009 I am using 2008, here, when I activate the viewport I get a new view on the status bar where it first is a padlock, then the viewport scale and then the annotative scale. While the viewport is active, you can simple click the padlock to unlock it. That being said, and this is solely my own personal opinion, I hate having viewports on freezed layers, it creates all kinds of confusions and just looks wrong! Much better in my view to have them on one separate layer and have that non-plottable. Quote
Jay Dee Posted October 13, 2009 Posted October 13, 2009 I always have my vports switched on and non plottable as mentioned in previous. I also have my right click custimization turned on so that when i want to unlock or lock I just select vport and right click then select lock or unlock. Its slightly easier than going into properties. Quote
Tiger Posted October 13, 2009 Posted October 13, 2009 I always have my vports switched on and non plottable as mentioned in previous. I also have my right click custimization turned on so that when i want to unlock or lock I just select vport and right click then select lock or unlock. Its slightly easier than going into properties. I have not made any customization on my right-click and I also have the Display Locked option in there when I right-click on the highligthed viewport - so try that! Quote
Glen Smith Posted October 13, 2009 Posted October 13, 2009 My drawing template has the viewport very close to the titleblock perimeter, so I have a hard time selecting the Vport. I wrote macros to lock and unlock them. The macro posted above (Thanks ReMark) in the AutoCAD forum for locking makes it even easier to lock all the Vports (lock them all rather than selecting them). I find it a pain to look for the "Display Locked" (I never remeber how far down it is) then mouse right to select on or off. Oh heck, I wasn't going to post them, after ReMark posted the link, but here they are anyway. Lock ^C^C-VPORTS;_LOCK;ON;ALL;; Unlock ^C^C-VPORTS;_LOCK;OFF Glen Quote
Glen Smith Posted October 13, 2009 Posted October 13, 2009 Holy parenthesis Batman! I have no doubt that this is more robust than the macros I posted. It just boggles my mind that all that code is necessary to do what a macro can do in 3 or 4 commands. Of course on the flip side, I've seen some of your routines that are just a few lines long that do an incredible amount of work. Glen Quote
alanjt Posted October 13, 2009 Posted October 13, 2009 Holy parenthesis Batman! I have no doubt that this is more robust than the macros I posted. It just boggles my mind that all that code is necessary to do what a macro can do in 3 or 4 commands. Of course on the flip side, I've seen some of your routines that are just a few lines long that do an incredible amount of work. Glen True In this case, I should have just taken the command route. It's not that mine takes more code, it's that I had to write my own lock, unlock function. (defun c:LV (/ #Choice) (initget 0 "Yes No") (and (or (setq #Choice (getkword "Lock Viewports [Yes/No] <Yes>: ")) (setq #Choice "Yes") ) ;_ or (or (zerop (getvar "tilemode")) (setvar "tilemode" 0)) (not (command "_.-vports" "_lock" (if (eq #Choice "Yes") "_on" "_off" ) ;_ if "_all" "" ) ;_ command ) ;_ not (princ (strcat "\nAll viewports have been " (if (eq #Choice "Yes") "Locked!" "Unlocked!" ) ;_ if ) ;_ strcat ) ;_ princ ) ;_ and (princ) ) ;_ defun Quote
alanjt Posted October 13, 2009 Posted October 13, 2009 Still a few, but I made it a single routine with a choice and I put a prompt at the end. Quote
alanjt Posted October 13, 2009 Posted October 13, 2009 what are all them codes for? For dancing baby! Quote
Nick-H- Posted October 13, 2009 Author Posted October 13, 2009 cool. im guessing there some lisp program but how are they used, and the macro how do you use them Quote
alanjt Posted October 13, 2009 Posted October 13, 2009 cool. im guessing there some lisp program but how are they used, and the macro how do you use them You can't utilize the lisp since you are LT. The macros can be placed in a button. Quote
Tiger Posted October 13, 2009 Posted October 13, 2009 what are all them codes for? I think you got more than you asked for Quote
Nick-H- Posted October 13, 2009 Author Posted October 13, 2009 im going to change my profile, because im not in LT no more Quote
Nick-H- Posted October 13, 2009 Author Posted October 13, 2009 You can't utilize the lisp since you are LT. The macros can be placed in a button. How do i do the Macros? for a freind using LT and how do i do the LISP? i have never used it before Quote
alanjt Posted October 13, 2009 Posted October 13, 2009 How do i do the Macros? for a freind using LT and how do i do the LISP? i have never used it before Macros: Stick them in a button. Lisp: Paste content into notepad and save as a .lsp file, then appload into Autocad. Quote
Nick-H- Posted October 13, 2009 Author Posted October 13, 2009 sorry for the pain staking task of explaing to me, but ive never done either before, what do you mean by stick in a button, how do i go about it, i would be very grateful Nick Quote
Glen Smith Posted October 13, 2009 Posted October 13, 2009 Follow the directions in this thread for creating a button: http://www.cadtutor.net/forum/showthread.php?t=40928 Glen 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.