Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
j3scat
in reply to: Anonymous

I know this is old, but seeing as this was a prominent answer in my search I felt I needed to supply an answer.

 

Yes you can.

Search how to send values to an ExternalRule using a NameValueMap.

Dim Map As Inventor.NameValueMap = ThisApplication.TransientObjects.CreateNameValueMap()

 

You send the value by the following;

Map.Add("NameofValue", Value)

Map.Add("NameofValue2", Value2), etc.

 

Call your external Rule via

ilogicVb.RunExternalRule("ExternalRuleName",Map)

 

In the external Rule you access the Map values from

 

NameofValue = RuleArguments("NameofValue")

 

To return a new value to the original Rule use the following;

 

RuleArguments.Arguments.Value("NameofValue") = NewValue

 

When you return to the Calling Rule, use the following;

 

NewValue =Map.Value("NameofValue")

 

Please exercise caution with copy paste of my code. I typed this in a hurry and nothing was a copy paste from working code. But I hope this will help someone out someday. (Most likely myself if I'm honest)