Thanks Brian,
Last night I got the pan and zoom working but had not yet started in on
the orbit. Just for fun, I added in some markup capability. I know
where I can find wheel code. Pleasantly your sample is very much like
what I had "discovered" but of course yours is much cleaner.
The big struggle for me was I kept trying to use the ClientView.ocx. It
wasn't until I looked at the C++ sample that I realized I needed to use
Apprentice.
Thanks again, you are ever helpful.
Brian Ekins wrote:
>Charles,
>
>I've posted a sample to customer files. Look for the post "ClientView
>Sample". The UI is a bit rough, but it demonstrates a good portion of the
>functionality. The ClientView does not have a lot of smarts by itself.
>Basically, it is a mechanism that allows Inventor to display a document
>within someone elses window. You are still the owner of the window, so any
>events within the window must be captured by you. For example if you want
>to support dynamic rotation, you need to capture the mouse move events and
>then modify the camera of the ClientView so that you continue to get
>different views of the model. This results in a dynamic rotation. This
>sample does this. The thing I didn't implement was the mouse wheel to zoom
>in and out. Instead it uses the right mouse button. VB doesn't have direct
>support for the mouse wheel. I did a quick search on the web and it's
>relatively easy to find code that allows you to capture the wheel changes
>but I didn't put this in the sample.
>
>-Brian
>
>
>"Charles Bliss" wrote in message
>news:3DD705AC.7000008@cbliss.com...
>
>
>>Anyone know how to control ClientView? Pretty easy to get a window with
>>a part or an assembly but I have yet to figure out how to pan / zoom or
>>orbit programitically.
>>
>>
>>
>
>
>
>