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

Select a viewport

1 view
Skip to first unread message

David Herrick

unread,
Dec 17, 2002, 5:18:01 PM12/17/02
to
I am writing a lisp to set up a viewport and I have run into a problem. If
paper space has several viewports and you want to issue a vplayer command to
a specific viewport, how can you accomplish this? I have started the
vplayer command and it does have the select option ... I thought there might
be a way to select the viewport from there, but I am having a brain dead
moment here. The other way was to find out what the variable was that
determined which viewport you go into when you issue a the mspace command
.... any ideas??


Jason Piercey

unread,
Dec 17, 2002, 5:39:30 PM12/17/02
to
A couple of ways I can think of off the top of my head:

1. select the viewport before running VpLayer and pass that selection set to
the VpLayer command.

2. determine what the id number of the viewport is (assoc 69), then issue
MSpace, and (setvar "cvport" id-number) then run VpLayer.

--

-Jason
Member of the Autodesk Discussion Forum Moderator Program

David Herrick

unread,
Dec 17, 2002, 9:09:11 PM12/17/02
to
I ended up using this based on suggestion 1:

(setq sevp (entsel "\nPick viewport to set up as Slab Edge: "))
(command "vplayer" "r" "*" "s" sevp "" "")

Thank you!

"Jason Piercey" <Jason@AtrEngDotCom> wrote in message
news:B333C810E4905FC2...@in.WebX.maYIadrTaRb...

Jason Piercey

unread,
Dec 18, 2002, 9:07:30 AM12/18/02
to
You're welcome.

--

-Jason
Member of the Autodesk Discussion Forum Moderator Program


"David Herrick" <SENDEMAILTOdherrickATroberthideyDOTcom> wrote in message
news:4126201A4B5B7CCD...@in.WebX.maYIadrTaRb...

0 new messages