Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Setting Layers in MULTIPLE Viewports...

2 views
Skip to first unread message

Dean Saadallah

unread,
Oct 25, 2001, 12:38:28 PM10/25/01
to
VPLAYER command: if you want more help, you will need to be more specific
about your exact needs.

--
Dean Saadallah
www.pendean.com
--


"abittar" <and...@ajbittar.com> wrote in message
news:f08f2...@WebX.maYIadrTaRb...
> So how do we do it with a lisp.
>


Paul Turvill

unread,
Oct 25, 2001, 12:50:42 PM10/25/01
to
Something like:

(setq vp (ssget '((0 . "VIEWPORT")))
l2f (getstring "\nLayers to Freeze: ")
l2t (getstring "\nLayers to Thaw: "))
(command "_.vplayer" "_f" l2f "_s" vp "" "_t" l2t "" "")
___

Paul Turvill

unread,
Oct 25, 2001, 1:12:13 PM10/25/01
to
Sorry, the final line should read:
(command "_.vplayer" "_f" l2f "_s" vp "" "_t" l2t "_s" vp "" "")
__

"Paul Turvill" <nos...@turvill.com> wrote in message
news:7474FF7C0EDBF81E...@in.WebX.maYIadrTaRb...

Bobby C. Jones

unread,
Oct 25, 2001, 1:49:00 PM10/25/01
to
I have a couple of versions of a routine that I wrote to do this. One uses
the VPLAYER command and one doesn't. I wasn't 100% happy with either
version and am abandoning the lisp version for a VBA version utilizing
Frank's vbextender to get at those pesky layers. I'll post either, or both,
lisp versions if you want to see them. Just let me know.

If you're curious you can get vbextender with source code from the downloads
section of the site.
--
Bobby C. Jones
http://www.acadx.com

Bobby C. Jones

unread,
Oct 25, 2001, 2:59:42 PM10/25/01
to
Sorry for the length of that one :-0 What was I thinking!!

In the first attachement, these are the subroutines for you to look at:
1. getVPFLayers - gets a list of layers that are frozen in a viewport
2. PLayers - freezes a list of layers in a viewport

In the second attachment, look at these subroutines:
1. getVPFLayers - gets a list of layers that are frozen in a viewport
2. PutVPFLayers - freezes a list of layers in a viewport

Good luck.

Bobby C. Jones

unread,
Oct 25, 2001, 2:49:41 PM10/25/01
to
Mr. Jones? I had to look behind me to see if my grandfather was standing
there :-) Consider yourself forewarned, these are tools that I designed for
developers, not end users. While there are some examples of some user
interfaces for using these tools, they are just that, examples...OK, now
that I've got you good and scared, these subroutines really aren't that
difficult to use and the files contain all the docs. necessary to use them.
As I stated before, I'm not 100% happy with either version and am switching
to VBA to continue development on the project. Just FYI, I use a modified
version of the non-vplayer command version.
Viewports2.lsp
public-Viewports.lsp
0 new messages