iLogic RunRule Return values?

iLogic RunRule Return values?

Josh_Hunt
Advocate Advocate
414 Views
1 Reply
Message 1 of 2

iLogic RunRule Return values?

Josh_Hunt
Advocate
Advocate

Help pages for iLogic RunRule and RunExternalRule show a RETURN value of Int32. 

https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=67907290-91c8-3b71-871c-281c4a1f7428

 

What are all possible return values and their meaning?

 

If Autodesk sees this then please update the help pages for all versions.

Josh Hunt
0 Likes
Accepted solutions (1)
415 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor
Accepted solution

The value will be Zero (0) if successful.  Here is a link to the other version of RunRule, accessed through iLogicVb.Automation.RunRule().  There are a whole other set of methods to run rules and macros under the Automation object, and they are often preferred, because they let you use a Document object, instead of a String path to a component or document.  That other page includes this useful little tidbit of information.  I believe I have also mentioned this to Autodesk before.  There are lots of little improvements needed within the online help pages.  I think it is just One (1) when it is unsuccessful.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.

If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes