VL-function for ZOOM extents
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
VL-function for ZOOM extents

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
Gustavo Guidi
Guest





Posted: Tue Dec 28, 2004 5:02 am    Post subject: VL-function for ZOOM extents Reply with quote

I need to know which function to use to do a zoom extents when I create a
VPORT in a LAYOUT
(I can't use (COMMAND "_ZOOM" ..)

Thanks

--
Gustavo Guidi
g_e_guidi@yahoo.com.ar

Back to top
Jason Piercey
Guest





Posted: Tue Dec 28, 2004 5:29 am    Post subject: Re: VL-function for ZOOM extents Reply with quote

(vla-zoomextents (vlax-get-acad-object))

This changes the current viewport only


--
Autodesk Discussion Group Facilitator


"Gustavo Guidi" <gguidi@powernet.net.ar> wrote in message news:41d0a220_1@newsprd01...
Quote:
I need to know which function to use to do a zoom extents when I create a
VPORT in a LAYOUT
(I can't use (COMMAND "_ZOOM" ..)

Thanks

--
Gustavo Guidi
g_e_guidi@yahoo.com.ar

Back to top
Fatty
Guest





Posted: Tue Dec 28, 2004 11:03 am    Post subject: Re: VL-function for ZOOM extents Reply with quote

(vla-zoomextents (vla-get-application
(vla-get-activedocument
(vlax-get-acad-object))))

Back to top
R. Robert Bell
Guest





Posted: Tue Dec 28, 2004 12:13 pm    Post subject: Re: VL-function for ZOOM extents Reply with quote

Just to expand a bit (run from a layout, obviously):

(defun C:Test (/ app doc vport)
(vl-load-com)
(setq app (vlax-Get-Acad-Object)
doc (vla-Get-ActiveDocument app))
(vla-ZoomAll app)
(setq vport (vla-AddPViewport
(vla-Get-PaperSpace doc)
(vlax-3D-Point (getvar "ViewCtr"))
10.0
7.5))
(vla-Display vport :vlax-True)
(vla-Put-MSPace doc :vlax-True)
(vla-ZoomExtents app)
(vla-Put-MSPace doc :vlax-False))

--
R. Robert Bell


"Jason Piercey" <nomail> wrote in message news:41d0a8a9$1_2@newsprd01...
(vla-zoomextents (vlax-get-acad-object))

This changes the current viewport only


--
Autodesk Discussion Group Facilitator


"Gustavo Guidi" <gguidi@powernet.net.ar> wrote in message
news:41d0a220_1@newsprd01...
Quote:
I need to know which function to use to do a zoom extents when I create a
VPORT in a LAYOUT
(I can't use (COMMAND "_ZOOM" ..)

Thanks

--
Gustavo Guidi
g_e_guidi@yahoo.com.ar

Back to top
Gustavo Guidi
Guest





Posted: Wed Dec 29, 2004 10:19 pm    Post subject: RE: VL-function for ZOOM extents Reply with quote

Thanks to all for the answear




Gustavo Guidi <gguidi@powernet.net.ar> escribió en el mensaje de noticias
41d0a220_1@newsprd01...
Quote:
I need to know which function to use to do a zoom extents when I create a
VPORT in a LAYOUT
(I can't use (COMMAND "_ZOOM" ..)

Thanks

--
Gustavo Guidi
g_e_guidi@yahoo.com.ar

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB