08-11-2016
02:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-11-2016
02:42 PM
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