PDA

View Full Version : Layers in Named Views



PhilBrogan44
17th Apr 2008, 08:50 pm
Lately, I've become more and more irritated with a "feature" of Acad2006, and I'd love some help with it. Here's a scenario. I draw for awhile in model space. Then I create a named view so I can pop back to where I was working.

A bit later, I freeze a layer or two because I'm finished with them for the present. Then I pop back to the named view, and the darned layers are back on again (it also works the other way - I turn on a layer or unfreeze it only to find it off or frozen again when I return to the named view).

I've discovered through trial and error that I can go to the named views dialog box and pick that view and hit Update Layers, and that will then 'freeze' the layers in that view only to their current condition.

Call it "hating progress", but I find this behavior extremely irritating and one I simply don't need. If I turn off a layer, I want it off in ALL views. If I turn a layer on, I want it on everywhere.

How can I turn off or disable the feature, or conversely, how can I perform a simultaneous update of all layers in all views? I'm assuming this will take some Lisp programming - bring it on!

Thanks:shock:

Cad64
20th Apr 2008, 06:55 am
Give this a try:



;;
;;RV = Restore View
;;Initiate command and then type in name of Named View to restore
;;
(defun c:RV (/ viewname)
(setq viewname (getstring "\nEnter Name of View to Restore: "))
(command "-view" "e" "l" viewname "save" "" "r" viewname)
(princ)
)

PhilBrogan44
21st Apr 2008, 11:26 am
Thanks sir! I'll try it and let you know.

PhilBrogan44
22nd Apr 2008, 02:16 pm
OK - I tried it. Got any other ideas?

I think perhaps it's a question of ACAD rev. I'm on 2006. The "-view" command only offers the following options in this version:

Enter an option [?/Categorize/lAyerstate/Orthographic/Delete/Restore/Save/Ucs/Window]:

Now what?

Cad64
22nd Apr 2008, 02:26 pm
I still have 2006 loaded on my machine at work. I'll take a look today on my lunch break. I'm sure it's just a matter of changing a few things to match the options in the old -view command.

LCE
22nd Apr 2008, 02:29 pm
From the options available, looks like you need to go down the LayerState route. Give it a look and see what you can do. Sorry, don't have 2006 loaded at work, so can't offer much advise right now.

Cad64
22nd Apr 2008, 03:45 pm
Ok, try this:


;;
;;RV = Restore View for Acad 2006
;;Initiate command and then type in name of Named View to restore
;;
(defun c:RV (/ viewname)
(setq viewname (getstring "\nEnter Name of View to Restore: "))
(command "-view" "a" viewname "save" "r" viewname)
(princ)
)