Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Supress iLogic error message when running VBA

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
CadUser46
1259 Views, 3 Replies

Supress iLogic error message when running VBA

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
3 REPLIES 3
Message 2 of 4
Nick.Steele.205
in reply to: CadUser46

Have you tried:

 

SyntaxEditor Code Snippet

On Error Resume Next

 

or 

 

SyntaxEditor Code Snippet

Try
Catch
End Try

 

Inventor 2016
Message 3 of 4

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

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report