Inventor hangs when running drawing ilogic code with application set to invisible
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
Link copied