VB add Inventorviewcontrol

VB add Inventorviewcontrol

Anonymous
Not applicable
299 Views
4 Replies
Message 1 of 5

VB add Inventorviewcontrol

Anonymous
Not applicable
Hello,

I got a question about the inventorviewcontrol. I'm using it in VB6, but don't know how to insert it at runtime. I tried the following:

dim oView as InventorViewControl

sub blablabla()
'This doesn't work!
Set oView=New InventorViewControl
end sub

Why doesn't this work? And what can I do to make it work?
0 Likes
300 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
You may add a new form, and insert InventorViewControl into this form from
toolbox, then you can use it in this form.

In sub you can show this form.


дÈëÓʼþ news:5208413@discussion.autodesk.com...
Hello,

I got a question about the inventorviewcontrol. I'm using it in VB6, but
don't know how to insert it at runtime. I tried the following:

dim oView as InventorViewControl

sub blablabla()
'This doesn't work!
Set oView=New InventorViewControl
end sub

Why doesn't this work? And what can I do to make it work?
0 Likes
Message 3 of 5

Anonymous
Not applicable
Hi,

Thanks, but it doesn't help. What I actually try is to update the view of the inventorviewcontrol, by removing it and placing it back.

This because i don't know how to update the control. Does someone know how to update the inventorviewcontrol?

(Or perhaps another trick to update it's view?)

Ralf
0 Likes
Message 4 of 5

Anonymous
Not applicable
Place it on the form, not visible until you need it, then make it visible.

Joe
--

wrote in message news:5208516@discussion.autodesk.com...
Hi,

Thanks, but it doesn't help. What I actually try is to update the view of
the inventorviewcontrol, by removing it and placing it back.

This because i don't know how to update the control. Does someone know how
to update the inventorviewcontrol?

(Or perhaps another trick to update it's view?)

Ralf
0 Likes
Message 5 of 5

Anonymous
Not applicable
Yes, but if i make it invisible and then again visible, it still hasn't updated.

I only want to know how to actually update the inventorviewcontrol.

Who knows how to do this?
0 Likes