Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
johnster100
200 Views, 1 Reply

Inventor hangs when running drawing ilogic code with application set to invisible

Hi,

I've written some code which moves views and dimension on some drawings to update them.

 

The code works fine when inventor is visible but fails when I switch the application to invisible (I'm running invisible to try and speed it up).

 

The code does not crash but instead just hangs with the cpu dropping to 0% for for the inventor application. If you wait around 5minutes the code will then continue to run. I only seem to get this behaviour on more complex assembly drawings (piece part drawings run fine).

 

I've attached visual studio to the process and the error / strange behaviour always occurs when retrieving view information (such as oView.Width or oView.Height). 

 

Is this a known behaviour?

 

thanks,

John