Supress iLogic error message when running VBA

Supress iLogic error message when running VBA

CadUser46
Collaborator Collaborator
1,663 Views
3 Replies
Message 1 of 4

Supress iLogic error message when running VBA

CadUser46
Collaborator
Collaborator

I have thousands of files to process.  Without knowing the name of the iLogic rule is it possible to suppress all Ilogic error messages when running a macro?

 

Should silentoperation achieve this?


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
0 Likes
Accepted solutions (1)
1,664 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

Have you tried:

 

SyntaxEditor Code Snippet

On Error Resume Next

 

or 

 

SyntaxEditor Code Snippet

Try
Catch
End Try

 

Message 3 of 4

HermJan.Otterman
Advisor
Advisor

Hello CadUser,

 

 

 

If the SilentOperation property on the Application is set to True and this argument is specified to be False, the defaults in the resulting dialogs are accepted and the dialogs are suppressed.

 

what kind of error messages are you talking about?

 

You should prevent error messages from happening with the code Nick wrote

 

 

 

If this answers your question then please select "Accept as Solution"
Kudo's are also appreciated Smiley Wink

Succes on your project, and have a nice day

Herm Jan


Message 4 of 4

CadUser46
Collaborator
Collaborator
Accepted solution

HermJan.  The piece of iLogic is triggered on save and I already had the update and save methods wrapped inside the silentoperation method. 

 

There is a workaround of just disabling the iLogic addin which is fine for this project.


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------------------------------------------------------------------------------------------------------------------------
Inventor 2010 Certified Professional
Currently using 2023 Pro
0 Likes