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

Hi Nick.Steele.205,

 

quick and dirty example, but try something like this.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

Rule1

 

Sub Main

Call Number()

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

Dim sString As String
map.Add("sString", "Hello World! : " & oNumber)

iLogicVb.RunRule("Rule2",map)


MessageBox.Show(SharedVariable("Foo_Variable"), "iLogic Rule1")

End Sub

Dim oNumber As Integer

Function Number
 
oNumber = 12

End Function

 

 

Rule2

 

Dim sArg as String
sArg = RuleArguments("sString")
MessageBox.Show(sArg, "iLogic Rule2")

Dim sNonsense As String
sNonsense = "foo"

SharedVariable("Foo_Variable") = sArg & " " & sNonsense