Zoom and pan changed.

Zoom and pan changed.

Anonymous
Not applicable
766 Views
10 Replies
Message 1 of 11

Zoom and pan changed.

Anonymous
Not applicable
Hi,
There is any way to get an event when the user change Autocad screen view
(using zoom, pan, or any arx api).

Thanks,
Aragao
0 Likes
767 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable
Paulo,

There are two System Variables called VIEWCTR and VIEWSIZE that are affected
when you PAN, ZOOM or change your current view.

If you trap sysVarChanged() Editor reactor notification you can find out if
both or one of them have changed.

Regards,
Fernando.

"Paulo Aragao" wrote in message
news:BDC393524845890EDD542096AF1AA8F4@in.WebX.maYIadrTaRb...
> Hi,
> There is any way to get an event when the user change Autocad screen view
> (using zoom, pan, or any arx api).
>
> Thanks,
> Aragao
>
>
0 Likes
Message 3 of 11

Anonymous
Not applicable
"Fernando Poinho Malard" wrote in message
news:39BD9ABB58E84285A4BADB516F951B3E@in.WebX.maYIadrTaRb...
> Paulo,
>
> There are two System Variables called VIEWCTR and VIEWSIZE that are
affected
> when you PAN, ZOOM or change your current view.
>
> If you trap sysVarChanged() Editor reactor notification you can find out
if
> both or one of them have changed.

I'm afraid not. sysVarChanged() does not report changes
to many system variables, including these two. I would
assume that's because both of those sysvars are viewport
specific, so they have different values in each viewport.
0 Likes
Message 4 of 11

Anonymous
Not applicable
Hi Fernando,
I have tried it, but Editor Reactor and Database Reactor don´t fire any
event when the user pan and zoom.

"Fernando Poinho Malard" escreveu na mensagem
news:39BD9ABB58E84285A4BADB516F951B3E@in.WebX.maYIadrTaRb...
> Paulo,
>
> There are two System Variables called VIEWCTR and VIEWSIZE that are
affected
> when you PAN, ZOOM or change your current view.
>
> If you trap sysVarChanged() Editor reactor notification you can find out
if
> both or one of them have changed.
>
> Regards,
> Fernando.
>
> "Paulo Aragao" wrote in message
> news:BDC393524845890EDD542096AF1AA8F4@in.WebX.maYIadrTaRb...
> > Hi,
> > There is any way to get an event when the user change Autocad screen
view
> > (using zoom, pan, or any arx api).
> >
> > Thanks,
> > Aragao
> >
> >
>
>
0 Likes
Message 5 of 11

Anonymous
Not applicable
Paulo,

I think these operations always fire commandStart/End notifications.
So, you can cache these variables values on commandStart() and check if they
have changed on commandEnd().
This is very dirty but I think it will work.

Regards,
Fernando.

"Paulo Aragao" wrote in message
news:9C5B7F7C8C93E1021E6B3E1A71656FAC@in.WebX.maYIadrTaRb...
> Hi Fernando,
> I have tried it, but Editor Reactor and Database Reactor don´t fire any
> event when the user pan and zoom.
>
> "Fernando Poinho Malard" escreveu na mensagem
> news:39BD9ABB58E84285A4BADB516F951B3E@in.WebX.maYIadrTaRb...
> > Paulo,
> >
> > There are two System Variables called VIEWCTR and VIEWSIZE that are
> affected
> > when you PAN, ZOOM or change your current view.
> >
> > If you trap sysVarChanged() Editor reactor notification you can find out
> if
> > both or one of them have changed.
> >
> > Regards,
> > Fernando.
> >
> > "Paulo Aragao" wrote in message
> > news:BDC393524845890EDD542096AF1AA8F4@in.WebX.maYIadrTaRb...
> > > Hi,
> > > There is any way to get an event when the user change Autocad screen
> view
> > > (using zoom, pan, or any arx api).
> > >
> > > Thanks,
> > > Aragao
> > >
> > >
> >
> >
>
>
0 Likes
Message 6 of 11

Anonymous
Not applicable
"Fernando Poinho Malard" wrote in message
news:4295F9D43C21ABF766FD36114E6FE0CC@in.WebX.maYIadrTaRb...
> Paulo,
>
> I think these operations always fire commandStart/End notifications.
> So, you can cache these variables values on commandStart() and check if
they
> have changed on commandEnd().
> This is very dirty but I think it will work.

For Zoom, Pan, View/Restore and so forth, it will, but
there is no notification fired when the user pans the
drawing using the scroll bars.
0 Likes
Message 7 of 11

Anonymous
Not applicable
Hi,
Really there is no notification using scroll bars.

"Tony Tanzillo" escreveu na mensagem
news:1E0E85D41DE1F2D469FF2BC8B5BD2D1F@in.WebX.maYIadrTaRb...
> "Fernando Poinho Malard" wrote in message
> news:4295F9D43C21ABF766FD36114E6FE0CC@in.WebX.maYIadrTaRb...
> > Paulo,
> >
> > I think these operations always fire commandStart/End notifications.
> > So, you can cache these variables values on commandStart() and check if
> they
> > have changed on commandEnd().
> > This is very dirty but I think it will work.
>
> For Zoom, Pan, View/Restore and so forth, it will, but
> there is no notification fired when the user pans the
> drawing using the scroll bars.
>
>
0 Likes
Message 8 of 11

Anonymous
Not applicable
Tony,

Can we trap OnScroll() event from AutoCAD's View?

"Tony Tanzillo" wrote in message
news:1E0E85D41DE1F2D469FF2BC8B5BD2D1F@in.WebX.maYIadrTaRb...
> "Fernando Poinho Malard" wrote in message
> news:4295F9D43C21ABF766FD36114E6FE0CC@in.WebX.maYIadrTaRb...
> > Paulo,
> >
> > I think these operations always fire commandStart/End notifications.
> > So, you can cache these variables values on commandStart() and check if
> they
> > have changed on commandEnd().
> > This is very dirty but I think it will work.
>
> For Zoom, Pan, View/Restore and so forth, it will, but
> there is no notification fired when the user pans the
> drawing using the scroll bars.
>
>
0 Likes
Message 9 of 11

Anonymous
Not applicable
Hi,
Maybe this is not a complete solution. Like Tony said, we have scrooll bar
problem.
AutoDESK have implemented this feature on AGISDS product for AutoCAD MAP
to load and unload acad entities if the user is inside or outside a defined
range zoom scale factor.




"Fernando Poinho Malard" escreveu na mensagem
news:4295F9D43C21ABF766FD36114E6FE0CC@in.WebX.maYIadrTaRb...
> Paulo,
>
> I think these operations always fire commandStart/End notifications.
> So, you can cache these variables values on commandStart() and check if
they
> have changed on commandEnd().
> This is very dirty but I think it will work.
>
> Regards,
> Fernando.
>
> "Paulo Aragao" wrote in message
> news:9C5B7F7C8C93E1021E6B3E1A71656FAC@in.WebX.maYIadrTaRb...
> > Hi Fernando,
> > I have tried it, but Editor Reactor and Database Reactor don´t fire any
> > event when the user pan and zoom.
> >
> > "Fernando Poinho Malard" escreveu na mensagem
> > news:39BD9ABB58E84285A4BADB516F951B3E@in.WebX.maYIadrTaRb...
> > > Paulo,
> > >
> > > There are two System Variables called VIEWCTR and VIEWSIZE that are
> > affected
> > > when you PAN, ZOOM or change your current view.
> > >
> > > If you trap sysVarChanged() Editor reactor notification you can find
out
> > if
> > > both or one of them have changed.
> > >
> > > Regards,
> > > Fernando.
> > >
> > > "Paulo Aragao" wrote in message
> > > news:BDC393524845890EDD542096AF1AA8F4@in.WebX.maYIadrTaRb...
> > > > Hi,
> > > > There is any way to get an event when the user change Autocad screen
> > view
> > > > (using zoom, pan, or any arx api).
> > > >
> > > > Thanks,
> > > > Aragao
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 10 of 11

Anonymous
Not applicable
Paulo,

This was made to improve performance to load only what the drawing really
needs to show.
Some time ago I saw a LISP routine that divide a drawing on several DWG by a
grid. If user goes out a grid the application detects the next grid square
and load it on AutoCAD. It works very nice and its idea is very good. This
way AutoCAD runs fast and the user can navigate int theory on any size map.

Regards,
Fernando.

"Paulo Aragao" wrote in message
news:1B885D4E76C9072C1A04A799E2C2A08B@in.WebX.maYIadrTaRb...
> Hi,
> Maybe this is not a complete solution. Like Tony said, we have scrooll bar
> problem.
> AutoDESK have implemented this feature on AGISDS product for AutoCAD MAP
> to load and unload acad entities if the user is inside or outside a
defined
> range zoom scale factor.
>
>
>
>
> "Fernando Poinho Malard" escreveu na mensagem
> news:4295F9D43C21ABF766FD36114E6FE0CC@in.WebX.maYIadrTaRb...
> > Paulo,
> >
> > I think these operations always fire commandStart/End notifications.
> > So, you can cache these variables values on commandStart() and check if
> they
> > have changed on commandEnd().
> > This is very dirty but I think it will work.
> >
> > Regards,
> > Fernando.
> >
> > "Paulo Aragao" wrote in message
> > news:9C5B7F7C8C93E1021E6B3E1A71656FAC@in.WebX.maYIadrTaRb...
> > > Hi Fernando,
> > > I have tried it, but Editor Reactor and Database Reactor don´t fire
any
> > > event when the user pan and zoom.
> > >
> > > "Fernando Poinho Malard" escreveu na mensagem
> > > news:39BD9ABB58E84285A4BADB516F951B3E@in.WebX.maYIadrTaRb...
> > > > Paulo,
> > > >
> > > > There are two System Variables called VIEWCTR and VIEWSIZE that are
> > > affected
> > > > when you PAN, ZOOM or change your current view.
> > > >
> > > > If you trap sysVarChanged() Editor reactor notification you can find
> out
> > > if
> > > > both or one of them have changed.
> > > >
> > > > Regards,
> > > > Fernando.
> > > >
> > > > "Paulo Aragao" wrote in message
> > > > news:BDC393524845890EDD542096AF1AA8F4@in.WebX.maYIadrTaRb...
> > > > > Hi,
> > > > > There is any way to get an event when the user change Autocad
screen
> > > view
> > > > > (using zoom, pan, or any arx api).
> > > > >
> > > > > Thanks,
> > > > > Aragao
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 11 of 11

Anonymous
Not applicable
God idea.
But, on my case, I am using AGISDS.
So, I have all information (spatial and non-spatial) stored on Oracle
Database.
Using AGIDS I can load any portion of the database on my drawing and I can
give range zomm scale factor to each layer, so every information on a layer
is showed when the drawing is inside
the range.
But I have to Implement to Raster images, because the user can overlap the
raster image with autocad entities.

Thanks,
Aragao


"Fernando Poinho Malard" escreveu na mensagem
news:BDF4A4DF5914F5BE6841CA95F2236939@in.WebX.maYIadrTaRb...
> Paulo,
>
> This was made to improve performance to load only what the drawing really
> needs to show.
> Some time ago I saw a LISP routine that divide a drawing on several DWG by
a
> grid. If user goes out a grid the application detects the next grid square
> and load it on AutoCAD. It works very nice and its idea is very good. This
> way AutoCAD runs fast and the user can navigate int theory on any size
map.
>
> Regards,
> Fernando.
>
> "Paulo Aragao" wrote in message
> news:1B885D4E76C9072C1A04A799E2C2A08B@in.WebX.maYIadrTaRb...
> > Hi,
> > Maybe this is not a complete solution. Like Tony said, we have scrooll
bar
> > problem.
> > AutoDESK have implemented this feature on AGISDS product for AutoCAD MAP
> > to load and unload acad entities if the user is inside or outside a
> defined
> > range zoom scale factor.
> >
> >
> >
> >
> > "Fernando Poinho Malard" escreveu na mensagem
> > news:4295F9D43C21ABF766FD36114E6FE0CC@in.WebX.maYIadrTaRb...
> > > Paulo,
> > >
> > > I think these operations always fire commandStart/End notifications.
> > > So, you can cache these variables values on commandStart() and check
if
> > they
> > > have changed on commandEnd().
> > > This is very dirty but I think it will work.
> > >
> > > Regards,
> > > Fernando.
> > >
> > > "Paulo Aragao" wrote in message
> > > news:9C5B7F7C8C93E1021E6B3E1A71656FAC@in.WebX.maYIadrTaRb...
> > > > Hi Fernando,
> > > > I have tried it, but Editor Reactor and Database Reactor don´t fire
> any
> > > > event when the user pan and zoom.
> > > >
> > > > "Fernando Poinho Malard" escreveu na mensagem
> > > > news:39BD9ABB58E84285A4BADB516F951B3E@in.WebX.maYIadrTaRb...
> > > > > Paulo,
> > > > >
> > > > > There are two System Variables called VIEWCTR and VIEWSIZE that
are
> > > > affected
> > > > > when you PAN, ZOOM or change your current view.
> > > > >
> > > > > If you trap sysVarChanged() Editor reactor notification you can
find
> > out
> > > > if
> > > > > both or one of them have changed.
> > > > >
> > > > > Regards,
> > > > > Fernando.
> > > > >
> > > > > "Paulo Aragao" wrote in message
> > > > > news:BDC393524845890EDD542096AF1AA8F4@in.WebX.maYIadrTaRb...
> > > > > > Hi,
> > > > > > There is any way to get an event when the user change Autocad
> screen
> > > > view
> > > > > > (using zoom, pan, or any arx api).
> > > > > >
> > > > > > Thanks,
> > > > > > Aragao
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes