Jaelin Posted January 13, 2009 Posted January 13, 2009 Okay, this sounds like such a basic question that I hate to even ask it but is there a way to freeze/turn off specific objects only in a viewport?? Explanation: I am using Civil 3D Land Desktop Companion. I work in land surveying/mapping and I am currently working on a right-of-way mapping project for a proposed four-lane highway. I'm creating my map and runnning into certain objects here and there that I don't want showing up on one viewport but I do want them showing up on other viewports. Therefore I can't just use the object isolation button. I also don't want to move these objects to another layer if I can get by with it. Surely there is a command or way to freeze/turn off these objects so that they don't show up in that one viewport but are viewable in other viewports and in model space. Lol, I feel like I'm overlooking a very simple answer but right now I'm having a brain fart and can't come up with anything. Any ideas?? Quote
CarlB Posted January 13, 2009 Posted January 13, 2009 Only way I know of is to have object on it's own layer, control visibility by freezing layer in viewports. ("vplayer" command) Quote
Jaelin Posted January 13, 2009 Author Posted January 13, 2009 Only way I know of is to have object on it's own layer, control visibility by freezing layer in viewports. ("vplayer" command) That's what I'm afraid I'll have to do, just looking for other possible options. I don't really want to do that because the specific object I'm dealing with at the moment is a portion of a subdivision. I want to keep it grouped the rest of that sub through the layer. Quote
RichterGMC Posted January 14, 2009 Posted January 14, 2009 WAIT!!!! haha, All you have to do is go into model space, double-click into the viewport you don't want the objects to show up in, and freeze those objects in that viewport. It will retain those objects in the other viewports and in model space. Easy fix!! Quote
Jaelin Posted January 14, 2009 Author Posted January 14, 2009 WAIT!!!! haha, All you have to do is go into model space, double-click into the viewport you don't want the objects to show up in, and freeze those objects in that viewport. It will retain those objects in the other viewports and in model space. Easy fix!! I can freeze off layers that way, but how are you freezing objects?? The only way I know to turn off a single object is to use the object isolation button in the bottom right hand corner of my screen. Is there a way to freeze objects?? Quote
RichterGMC Posted January 14, 2009 Posted January 14, 2009 Oh sorry, The only way I would know of that then would be to have those objects on different layers, which is clearly what you're trying to avoid. Quote
Grigs Posted January 15, 2009 Posted January 15, 2009 (edited) I can not take credit for this. I found it on Cadalyst. It lets you turn off individual elements. Not sure if it works in Paperspace or just in model space. ;Tip1504: ELEMS.LSP Freeze Elements (c)1999, Pawel Lewicki (defun c:ELEMS (/ odp count ss s1 dxf old-name xd appl) (setvar "cmdecho" 0) (setq appl "ELEMS") (if (not (tblsearch "appid" appl)) (regapp appl) ) (initget "? ON OFF Freeze Thaw Lock Unlock") (setq odp (getkword "\n?, ON, OFF, Freeze, Thaw, Lock, Unlock : ")) (cond ( (= odp "ON") (RESTORE-LAYR "ELEMS-OFF") ) ( (= odp "Thaw") (RESTORE-LAYR "ELEMS-Freeze") ) ( (= odp "Unlock") (RESTORE-LAYR "ELEMS-Lock") ) ( (= odp "OFF") (CHANGE-LAYR "ELEMS-OFF") ) ( (= odp "Freeze") (CHANGE-LAYR "ELEMS-Freeze") ) ( (= odp "Lock") (CHANGE-LAYR "ELEMS-Lock") ) ( (= odp "?") (ELEMS-INFO) ) ) (princ) );defun (defun ELEMS-INFO () (foreach layr-name '("ELEMS-OFF" "ELEMS-Freeze" "ELEMS-Lock") (setq ss (ssget "_X" (list (cons 8 layr-name)) )) (if ss (princ (sslength ss)) (princ "0") ) (princ (strcat " elements on layer " layr-name "\n") ) ) ) (defun CHANGE-LAYR (layr-name) (setq ss (ssget)) (if ss (progn (command "_layer" "_n" layr-name (strcat "_" odp) layr-name "") (setq count 0) (while (setq s1 (ssname ss count)) (setq dxf (entget s1)) (setq old-name (cdr (assoc 8 dxf))) (setq xd (list (LIST -3 (LIST appl (cons 1002 "{") (cons 1003 old-name) (cons 1002 "}") )))) (setq dxf (subst (cons 8 layr-name) (assoc 8 dxf) dxf)) (setq dxf (append dxf xd)) (entmod dxf) (setq count (+ 1 count)) ) ));if );defun (defun RESTORE-LAYR (layr-name) (setq ss (ssget "_x" (list (cons 8 layr-name)) )) (if ss (progn (setq count 0) (if (= layr-name "ELEMS-Lock") (command "_layer" "_Unlock" layr-name "") ) (while (setq s1 (ssname ss count)) (setq dxf (entget s1 (list appl))) (setq xd (car (cdr (assoc -3 dxf)))) (setq old-name (cdr (nth 2 xd))) (setq dxf (subst (cons 8 old-name) (assoc 8 dxf) dxf)) (setq dxf (reverse (cdr (reverse dxf)))) (entmod dxf) (setq count (+ 1 count)) ) (if (= layr-name "ELEMS-Lock") (command "_layer" "_Lock" layr-name "") ) )) (princ count) (princ " elements") (princ) );defun Edited October 3, 2013 by SLW210 Added code tags Quote
Jaelin Posted January 15, 2009 Author Posted January 15, 2009 I can not take credit for this. I found it on Cadalyst. It lets you turn off individual elements. Not sure if it works in Paperspace or just in model space. Thanks!! I will try that. 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.