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

johnster100
Collaborator
Collaborator

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

johnster100
Collaborator
Collaborator

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

0 Likes
Reply
193 Views
1 Reply
Reply (1)

bradeneuropeArthur
Mentor
Mentor

can be that there is now a hidden dialog that wait for answer.

us also inventorapp.silentoperation = true when inventorapp.visible = false is used.

 

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

0 Likes