Zooming while in a VBA routine

Zooming while in a VBA routine

Anonymous
Not applicable
400 Views
5 Replies
Message 1 of 6

Zooming while in a VBA routine

Anonymous
Not applicable
Ok, I'm using A2K...

I start my VBA command and while I'm running the command, I need to be able
to zoom into other areas of my drawing. When I hit the zoom button on the
toolbar, it cancels my VBA.

Does anybody have a suggestion on how to overcome this?

Thanks
CC
0 Likes
401 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
No, this is a known bug. If you like though, you can place buttons on your
form that will allow a user to zoom and pan around to where they need to be.
I had to do this on one of my projects. I drew an icon for each direction
and a zoom scale factor slide bar. This seemed to work ok but I wish
Autodesk would fix this. Transparent zooms still work if you type them at
the command prompt. Maybe this would be your answer. Instead of using the
icons, type'zoom a the command prompt. Hope this helps.
0 Likes
Message 3 of 6

Anonymous
Not applicable
i found if type ' z or 'pan you can zoom and also if your mouse has the middle
button as wheel you can zoom in and out and pan

Creig Cooper wrote:

> Ok, I'm using A2K...
>
> I start my VBA command and while I'm running the command, I need to be able
> to zoom into other areas of my drawing. When I hit the zoom button on the
> toolbar, it cancels my VBA.
>
> Does anybody have a suggestion on how to overcome this?
>
> Thanks
> CC
0 Likes
Message 4 of 6

Anonymous
Not applicable
try to catch the error and use resume (and see the result)!!!!

sub Ciccio()
on error goto Herr

thisdrawing.utility.getentity Myobj,p1,"get an acadentity :"

herr:
resume
end sub
0 Likes
Message 5 of 6

Anonymous
Not applicable
That seems to work but what if I want to catch the error to find out if the
user cancelled? Pressing 'esc' or 'return' returns the same error as
pressing a zoom icon. It looks like this would make it difficult to
determine the users intent.
0 Likes
Message 6 of 6

Anonymous
Not applicable
I reassign my f12 key to be a 'pan. this is working fine. if you can right
click and change to real zoom or zoom extent from dialog. i get no crush.

Creig Cooper wrote:

> Ok, I'm using A2K...
>
> I start my VBA command and while I'm running the command, I need to be able
> to zoom into other areas of my drawing. When I hit the zoom button on the
> toolbar, it cancels my VBA.
>
> Does anybody have a suggestion on how to overcome this?
>
> Thanks
> CC
0 Likes