viewports

viewports

Anonymous
Not applicable
580 Views
9 Replies
Message 1 of 10

viewports

Anonymous
Not applicable
how do you know if you are in paper space or model
space

 

Robert Steltman
0 Likes
581 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
Hi Robert

The following sample shows you how get the information:

(if (= (getvar "TILEMODE") 0)
(if (> (getvar "CVPORT") 1)
(alert "Model space activ.")
(alert "Paper space activ.")
)
(alert "Tilemode activ.")
)

Cheers
--
Juerg Menzi [MENZI ENGINEERING GmbH, Switzerland]
Using Netscape Communicator v4.6

Robert schrieb:
>
> how do you know if you are in paper space or model space
>  
> Robert Steltman
0 Likes
Message 3 of 10

Anonymous
Not applicable
Maybe I'm wrong, but I think all you have to do is look at that little
MODEL/PAPER button at the bottom of you screen.
0 Likes
Message 4 of 10

Anonymous
Not applicable
Yeah, but I think he wanted to do it programmatically. I don't know how
to get AutoLISP to look at that little button (no eyes).
___

"Snoid" wrote in message
news:03C411F88ABAD3F67C4959F21CA174F9@in.WebX.SaUCah8kaAW...
> Maybe I'm wrong, but I think all you have to do is look at that little
> MODEL/PAPER button at the bottom of you screen.
>
0 Likes
Message 5 of 10

Anonymous
Not applicable
"Paul Turvill" wrote in message
news:D4D422472A7F78D91C2D9535BA6B8412@in.WebX.SaUCah8kaAW...
| Yeah, but I think he wanted to do it programmatically. I don't know how
| to get AutoLISP to look at that little button (no eyes).

Sure AutoLISP has eyes... AutoL_I_SP!
0 Likes
Message 6 of 10

Anonymous
Not applicable
Oh, Bob.
0 Likes
Message 7 of 10

Anonymous
Not applicable
Hi Paul

Perhaps a small program for the human brain solve this problem:

(if (= Button "Model")
(Imagine "I'm in model space)
(Imagine "I'm in paper space)
)

Cheers
--
Juerg Menzi [MENZI ENGINEERING GmbH, Switzerland]
Using Netscape Communicator v4.6

Paul Turvill schrieb:
>
> Yeah, but I think he wanted to do it programmatically. I don't know how
> to get AutoLISP to look at that little button (no eyes).
0 Likes
Message 8 of 10

Anonymous
Not applicable
Engenious!



--
Eric S. eschneider@jensenprecast.com
0 Likes
Message 9 of 10

Anonymous
Not applicable
I have some large files with multiple viewports in a layout. Somehow in
converting from Rel. 14 all the viewports have ucsfollow set at 1. This
causes all viewports to do a zoom e when I go to MS on any one viewport.

1. Is there any way to prevent this at the conversion time.

2. Is there any global way, or a lisp way to change all the viewports to
have a ucsfollow setting of 0.

Thanks
FM
0 Likes
Message 10 of 10

Anonymous
Not applicable
Frank McCue wrote in message
news:90596F059CF669113880C134B99582D0@in.WebX.maYIadrTaRb...
> I have some large files with multiple viewports in a layout. Somehow in
> converting from Rel. 14 all the viewports have ucsfollow set at 1. This
> causes all viewports to do a zoom e when I go to MS on any one viewport.

Wow! That's some BUG you've stumbled upon! R14 doesn't do anything
like that at all! (I guess the philosophical view would be to see that
as an improvement associated with a version upgrade).

>
> 1. Is there any way to prevent this at the conversion time.

Are you sure you don't have these settings already set in r14 DWG?
You may not be aware of it, since r14 doesn't have this BUG.
Go inside MS on the problem viewports -- in r14 -- and check
the UCSFOLLOW setting. Chances are, it's 1 there already.

>
> 2. Is there any global way, or a lisp way to change all the viewports to
> have a ucsfollow setting of 0.

Since Autolisp is forbidden from entmoding the viewport entity
in any way, short of going ARX the one thing left to try is Automation.
From looking into ObjectModel, there's no UCSFollowOn or such
property for AcadViewport, but there's GetXData and SetXData
methods, which just might work for you with a little bit of luck. 🙂

But first check the original r14 DWGs -- maybe you won't need
to do this in A2K after all.

http://vnestr.tripod.com/
0 Likes