Problems using InventorViewControl

Problems using InventorViewControl

Anonymous
Not applicable
476 Views
6 Replies
Message 1 of 7

Problems using InventorViewControl

Anonymous
Not applicable
Hi
I am using the InventorViewControl ActiveX component in a standalone VB Application.

There are two strange things happening.
1) when changing the fileName attribute to display another Inventor-file the RAM usage increases "dramatically". Each change of fileName needs about 2 up to 4 MB RAM which is never released (besides when closing the application)

2) when changing a Inventor-file after loading the InventorViewControl the changes won't be visible, it always shows the version of the file that was when loading the InventorView

Does anyone have an idea how to solve any (or both) of these problems?

This happens when using Inventor Series 10 and the InventorViewControl.ocx shipped with it. But the same problems occurred when using the ClientViewControl shipped with R8.

Thanks in advance

neutro
0 Likes
477 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable
Hi,
I've been experiencing the exact same issues with the control for years
now.
As far as I know, Autodesk are aware of this but the fix is taking time.
However, as of Inv. 10 SP1, there is a possible workaround which you might
want to try. It's working ok for me. If you have previously viewed a file
with the control, set the FileName attribute to an empty string to close the
previous file, before setting it with the path to your next file to be
viewed. This should fix both of your problems.

Regards,
Andrew
0 Likes
Message 3 of 7

Anonymous
Not applicable
Hi Andrew,
thank you for your reply.

I installed SP 1 (and SP2 and SP 3a later on) but none of them changed anything.

The problems remained.

Any other ideas?

SVen
0 Likes
Message 4 of 7

Anonymous
Not applicable
Hi,
no other ideas. But did you also change your code to set the FileName
attribute to empty
before setting it to the next file to be viewed, as I mentioned?

Regards,
Andrew


skrev i meddelandet news:5135494@discussion.autodesk.com...
Hi Andrew,
thank you for your reply.

I installed SP 1 (and SP2 and SP 3a later on) but none of them changed
anything.

The problems remained.

Any other ideas?

SVen
0 Likes
Message 5 of 7

Anonymous
Not applicable
Hello again Andrew,

yes, I tried to set the FileName attribute to an empty String, I also tried to set it to nothing.

And I tried all combinations of setting filename to "" or nothing and the different service pack levels.

none of it worked.

SVen
0 Likes
Message 6 of 7

Anonymous
Not applicable
Hi,Andrew Z !
I also use AxInventorViewControl with Inventor 10,but there's
an error when it runs to AxInventorViewControl2.FileName = CurrentFileName.The error as attachment.Can you help me ?
'----------------------------- -------------------------- ---------------------
AxInventorViewControl2.FileName = Nothing
AxInventorViewControl2.FileName = CurrentFileName
AxInventorViewControl2.ClientView.DisplayMode = Inventor.DisplayModeEnum.kShadedRendering
AxInventorViewControl2.ClientView.Camera.Fit()

'------------------------------ ------------------------- --------------------
0 Likes
Message 7 of 7

naresh_kalyan
Advocate
Advocate
Hi all,
Is it fixed ?
same RUNTIME Error in my code too..
Everything is fine with the code. Any body plz .. help me out!!!

Thanks in advance.
NKalyan
0 Likes