VBA question about trouble with opening an idw

VBA question about trouble with opening an idw

shastu
Advisor Advisor
316 Views
2 Replies
Message 1 of 3

VBA question about trouble with opening an idw

shastu
Advisor
Advisor

I have a VBA program that is doing quite a bit but at one particular point it simply opens an idw based off of the model that is open.  I created a custom button for it that I am running it from and it works fine on one of the computers I have tried it on, but on a different computer in the bottom left corner when it gets to that point of the macro, it reads "Loading Presentation" and then just hangs up Inventor and never responds again.  The strange thing is when I close down Inventor and restart it, it will do the same thing every time, but when I open the macro and step through it, it works every time and if I use the button after I have stepped through it, then it works from that point on until I have to start a new session of Inventor and then it behaves the same way.  Anyone else run into something like this before and know what could be causing it? 

0 Likes
317 Views
2 Replies
Replies (2)
Message 2 of 3

xiaodong_liang
Autodesk Support
Autodesk Support

Hi,

 

For most modules, Inventor load them on-demand. Normally, the API code will trigger some relevant modules  when it needs to load something. So I guess Inventor was not able to load presentation module at the beginning because of some special reasons. After you restart, it might be able to be loaded correctly.

I have not a specific experience. Could you provide more information such as a simple VBA code that can reproduce, Inventor version, configuration of that special machine. I can try to diagnose what might probably cause the issue.

 

 

0 Likes
Message 3 of 3

shastu
Advisor
Advisor

I cleaned up the code a bit, and also rebooted my computer, and now it is not doing it.  If it happens again, I will let you know.  Thanks for being willing to help.

0 Likes