Slow performance when surpressing/activating features and components

Slow performance when surpressing/activating features and components

tableauzeichner1
Participant Participant
586 Views
4 Replies
Message 1 of 5

Slow performance when surpressing/activating features and components

tableauzeichner1
Participant
Participant

Hello,

I have created an assembly in Inventor in which various features and components are activated and suppressed with ilogic rules. At some point this process started to take a very long time (1-3min).

 

We once started inventor via the api and left the display window closed during this time, which meant that the same processes were completed within 5 seconds. Because of this we thought it could be due to the graphics card. So we got a new graphics card (RTX4000) + workstation pc (reseted) and started testing. The processes then worked with both the old graphics card (P2000) and the new graphics card within 5 seconds.

 

Now a day later and several attempts later, I have the feeling that the processes take longer and longer the more I repeat them. Today they have already taken 31 seconds.
Does anyone have any ideas as to what could be causing this and how to speed it up?

 

Thanks for your help

0 Likes
Accepted solutions (2)
587 Views
4 Replies
Replies (4)
Message 2 of 5

ryan.rittenhouse
Advocate
Advocate
Accepted solution

I have noticed a very large time variance with suppression when you are connected to the vault. It seems to be proportional to the vault connection speed and seems to be doing status checks on the (un)suppressed items every time their state changes. We experienced a significant speed up when we started deactivating the vault plugin while we are running these types of operations. If you want to try it, just add this code to your rule:

 

Dim vaultApp As ApplicationAddIn = ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}")
vaultApp.Deactivate()

'CODE TO (UN)SUPPRESS HERE

vaultApp.Activate()
If this solved your problem, or answered your question, please click Accept Solution.
Message 3 of 5

bradeneuropeArthur
Mentor
Mentor

Are you using multibody design?

Are you using ilogic or other add ins?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


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:
My 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 !


 


EESignature

0 Likes
Message 4 of 5

JelteDeJong
Mentor
Mentor
Accepted solution

In the past, I have seen that the vault (addin) can be the reason for sow performance. you could try to disable it as a test. You also might want to have a look at these pages to upgrade your performance:

https://modthemachine.typepad.com/my_weblog/2015/09/improving-your-programs-performance.html

http://www.hjalte.nl/tutorials/70-improvingperformance

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 5 of 5

tableauzeichner1
Participant
Participant

Thank you @ryan.rittenhouse and thank you @JelteDeJong. I added those three lines of code to each of my rules and now we're down from over 30 seconds to about 13 seconds update time. Also, your tip happened to help with another problem where we were accessing inventor closed via Visual Studio and kept getting a Vault access error. Since the Vault is not needed for this, the method of switching off the Vault Addin is also the right solution here.
So thanks directly 2x to you!

With kind regards
Nico

 

0 Likes