TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Amsterdammed on October 18, 2006, 10:29:41 AM
-
Hello there,
I know i saw somewhere a lisp that copies the layer state from one VP to another. Anybody aware of that lisp?
Thanks in Advance
Bernd
-
I just use the "match properties" button after I get one viewport the way I want it.
-
You could get a list of the layer names from one viewport through code, but you would have to use the command 'vplayer' to freeze them in the one you are matching to. You can't use 'entmod' on a viewport.
Side note: You might be able to do it with ActiveX controls, haven't tried yet, but you can change some items with ActiveX, so this might be one. Just throwing that out there.
I just use the "match properties" button after I get one viewport the way I want it.
But if this works, no need for code.
-
I just use the "match properties" button
Cheers for that one Dinosaur, I never realised that match properties worked with viewport layers
(DOH!! - Slaps Head)
-
What if the vp is in another layout? :evil:
http://www.theswamp.org/index.php?topic=4002.0
Here is another one
http://www.theswamp.org/index.php?topic=1533.msg19303#msg19303
-
What if the vp is in another layout? :evil:
I have gone so far as to copy a viewport from one layout tab to a second one, match the properties and erase the copy to avoid messing with layer states. I never have become comfortable with them.
When I am first setting up my sheets, I will get the viewport layers the way I want on each type of layout tab and then copy the entire tab for new sheets and adjust the views as necessary.
-
It doesn't make sense that you can match properties between open drawings but not between tabs in a single drawing.... :ugly:
-
It doesn't make sense that you can match properties between open drawings but not between tabs in a single drawing.... :ugly:
I have always scratch my head over that one.
-
What if the vp is in another layout? :evil:
I have gone so far as to copy a viewport from one layout tab to a second one, match the properties and erase the copy to avoid messing with layer states. I never have become comfortable with them.
When I am first setting up my sheets, I will get the viewport layers the way I want on each type of layout tab and then copy the entire tab for new sheets and adjust the views as necessary.
I just tried this or the first time using 2007. It still works at least as long as you want to keep the same scale in each viewport. It will NOT however save the layer settings when copying a viewport between tabs as it would with 2006 - bummer . . . that was a good trick.
-
I'm working with Acad 2002, Match Prop doesn't work on Vports there.
Bernd
-
For Acad2002 you can use the attached routine.